360 Secure SkillHub
360 安全技能中心

tron-x402-payment-demo

该 Skill 以触发词启动 x402 支付协议演示:按 x402_payment_tron 技能的指引请求 x402-tron-demo.sunagent.ai 上的受保护资源,自动处理 402 Payment Required、签名许可并完成支付,获取图片后展示给用户,随后立即删除本地临时文件。依赖 TRON_PRIVATE_KEY 环境变量和外部网络服务,自身不含支付实现代码。

wzc1206
wzc1206
热度 65.81
最近更新 2026-05-18 11:57:28
分类:自动化依赖:第三方 API / 读写文件应用场景:API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tron-x402-payment-demo
Metadata
name
x402_payment_demo
description
Demo of x402 payment protocol by fetching a protected image. Triggers: '演示x402-payment' or 'demo x402-payment'
version
1.0.0
author
opencode
metadata
{"clawdbot":{"emoji":"🖼️","env":["TRON_PRIVATE_KEY"],"triggers":["演示x402-payment","demo x402-payment","show me x402 demo"]}}
tags
["x402","demo","payment","tron","image"]

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.