360 Secure SkillHub
360 安全技能中心

x402-payment-demo

该 Skill 触发后按 x402-payment-tron 的指引访问 x402-tron-demo.aibank.io 的受保护图片接口(默认 TRON Nile),自动处理 402 Payment Required、完成签名支付并取回图片展示给用户,随后删除本地临时文件。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add x402-payment-demo
Metadata
name
x402-payment-demo
description
Demo of x402 payment protocol by fetching a protected image. Triggers: 'demo x402-payment'
version
1.0.2
author
open-aibank
metadata
{"clawdbot":{"emoji":"🖼️","triggers":["demo x402-payment","show me x402 demo"]}}
tags
["x402","demo","payment","tron","image"]
arguments
{"network":{"description":"TRON network to use (nile, shasta, mainnet). Default: nile","required":false}}

x402 Payment Demo Skill

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

Usage

Simply tell the Agent:

  • "demo x402-payment"

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.).
  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.