x402 Payment Demo Skill
This skill demonstrates the x402 payment protocol on the TRON network.
Usage
Simply tell the Agent:
Workflow
- 1. Request Resource: When triggered, follow the instructions provided by the
x402-payment-tron skill to fetch the protected resource. Use Tron Nile by default:
-
Tron Nile (Default):
https://x402-tron-demo.aibank.io/protected-nile
-
Tron Shasta:
https://x402-tron-demo.aibank.io/protected-shasta
-
Tron Mainnet:
https://x402-tron-demo.aibank.io/protected-mainnet
- 2. 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支付协议。
使用方法
只需告诉智能代理:
工作流程
- 1. 请求资源:触发后,按照x402-payment-tron技能提供的说明获取受保护资源。默认使用Tron Nile网络:
-
Tron Nile(默认):https://x402-tron-demo.aibank.io/protected-nile
-
Tron Shasta:https://x402-tron-demo.aibank.io/protected-shasta
-
Tron主网:https://x402-tron-demo.aibank.io/protected-mainnet
- 2. 处理支付:按照协议指引自动执行支付和资源获取(处理402支付要求、签署许可等)。
- 显示与清理:获取图片后,将其展示给用户。图片显示完成后立即删除本地临时文件。