AGENT SKILL

x402_payment_demo

Demo of x402 payment protocol by fetching a protected image. Triggers: '演示x402-payment' or 'demo x402-payment'

License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
x402_payment_demo
tags
[ "x402", "demo", "payment", "tron", "image" ]
author
opencode
version
1.0.0
metadata
{ "clawdbot": { "env": [ "TRON_PRIVATE_KEY" ], "emoji": "?️", "triggers": [ "演示x402-payment", "demo x402-payment", "show me x402 demo" ] } }
description
Demo of x402 payment protocol by fetching a protected image. Triggers: '演示x402-payment' or 'demo x402-payment'

02 资源文件 1

03 SKILL.md 正文

x402 Payment Demo Skill

This skill demonstrates the x402 payment protocol on the TRON network.

Usage

Simply tell the Agent:

  • "演示x402-payment"
  • "demo x402-payment"

Workflow

  1. Request Resource: When triggered, follow the instructions provided by the x402_payment_tron skill to fetch the protected resource at http://x402-tron-demo.sunagent.ai/protected.
  2. Handle Payment: Perform the payment and resource acquisition automatically as guided by the protocol (handling 402 Payment Required, signing permits, etc.).
  3. Display & Cleanup: Once the image is retrieved, present it to the user. Immediately delete the local temporary file after the image has been displayed.

04 同仓库更多 Skills