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. - Handle Payment: Perform the payment and resource acquisition automatically as guided by the protocol (handling 402 Payment Required, signing permits, etc.).
- Display & Cleanup: Once the image is retrieved, present it to the user. Immediately delete the local temporary file after the image has been displayed.
x402 支付演示技能
该技能演示了TRON网络上的x402支付协议。
使用方法
只需告诉智能体:
- - 演示x402-payment
- demo x402-payment
工作流程
- 1. 请求资源:触发后,按照x402paymenttron技能提供的指示,获取位于http://x402-tron-demo.sunagent.ai/protected的受保护资源。
- 处理支付:根据协议指引自动完成支付和资源获取(处理402 Payment Required、签署许可等)。
- 显示与清理:获取图片后,将其展示给用户。图片显示完毕后立即删除本地临时文件。