用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill x402-payment-tron命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | x402_payment_tron |
| description | Pay for x402-enabled Agent endpoints using USDT on TRON |
| version | 1.0.0 |
| author | x402-protocol |
| homepage | https://x402.org |
| metadata | {"clawdbot":{"emoji":"💳","env":["TRON_PRIVATE_KEY"]}} |
| tags | ["crypto","payments","x402","agents","api","usdt","tron"] |
| requires_tools | ["x402_tron_invoke"] |
| arguments | {"agent_url":{"description":"Base URL of the x402 agent","required":false},"endpoint":{"description":"Entrypoint name to invoke (e.g., 'chat', 'search')","required":false}} |
Invoke x402-enabled AI agent endpoints with automatic USDT micropayments on TRON.
The skill is pre-bundled into a single file. No installation required.
node dist/index.js --url <URL> [options]
npm install
npm start -- --url <URL>
TRON_PRIVATE_KEY environment variable.~/.mcporter/mcporter.json (AIBank standard configuration).x402-config.json in the current directory.~/.x402-config.json in the home directory.Invokes an HTTP endpoint. If payment is required (402), it automatically:
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full URL to invoke |
method | string | No | HTTP method (GET, POST, etc.) Default: GET |
body | object | No | JSON body for the request |
network | string | No | mainnet, nile, shasta (Default: nile) |
url: https://api.example.com/chat
method: POST
body: {"prompt": "Tell me a joke"}
You can discover available endpoints and their pricing by checking the agent's manifest.
url: https://api.example.com/.well-known/agent.json
method: GET
TRON_PRIVATE_KEY or any other signing secret to the dialogue context.export TRON_PRIVATE_KEY=...).Ensure the TRON_PRIVATE_KEY environment variable is set or a valid x402-config.json exists in the expected locations.
Agent Note: If this error occurs, simply inform the user that the environment is not configured. DO NOT attempt to search for or read private keys from files yourself.
The tool will attempt to broadcast an infinite approve transaction. This requires TRX for gas. Ensure your wallet has TRX.
Check if you have enough USDT and TRX.
If the endpoint returns an image (Content-Type: image/*) or binary data (application/octet-stream):
/tmp/x402_image_... or /tmp/x402_binary_...).file_path: Path to the temporary file.content_type: The MIME type of the content.bytes: File size in bytes.| Network | Chain ID | CAIP-2 | USDT Contract |
|---|---|---|---|
| TRON Mainnet | 0x2b6653dc | eip155:728126428, tron:mainnet | TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t |
| TRON Nile | 0xcd8690dc | eip155:3448148188, tron:nile | TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf |
| TRON Shasta | 0x94a9059e | eip155:2494104990, tron:shasta | - |