Overview
- Skill Key
- hades-ye/x402-payment-tron
- Author
- x402-protocol
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/hades-ye/x402-payment-tron
- Latest Commit SHA
- 5ff419485fcef343ab5cff875d24260665bae3b9
Pay for x402-enabled Agent endpoints using USDT on TRON
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 x402_payment_tron 技能。 若已安装,则直接安装 x402_payment_tron 技能。
# x402 Payment Protocol for TRON Agents
Invoke x402-enabled AI agent endpoints with automatic USDT micropayments on TRON.
## Quick Start
### Option 1: Run Pre-built (Recommended for Agents)
The skill is pre-bundled into a single file. No installation required.
```bash
node dist/index.js --url <URL> [options]
```
### Option 2: Development
```bash
npm install
npm start -- --url <URL>
```
## Tool Reference
- **Wallet**: A TRON private key must be available. The skill automatically looks for it in:
1. `TRON_PRIVATE_KEY` environment variable.
2. `~/.mcporter/mcporter.json` (AIBank standard configuration).
3. `x402-config.json` in the current directory.
4. `~/.x402-config.json` in the home directory.
- **USDT on TRON**: Wallet needs USDT and some TRX for gas.
---
## Tool Reference
### x402_tron_invoke
Invokes an HTTP endpoint. If payment is required (402), it automatically:
1. Negotiates payment requirements.
2. Checks USDT allowance. If insufficient, it performs an **infinite approval** (MAX_UINT256) to minimize future transactions.
3. Signs the payment permit (EIP-712).
4. Retries the request with the payment signature.
| 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`) |
### Example: Chat with Agent
```tool:x402_tron_invoke
url: https://api.example.com/chat
method: POST
body: {"prompt": "Tell me a joke"}
```
---
## Agent Discovery
You can discover available endpoints and their pricing by checking the agent's manifest.
### Fetch Agent Manifest
```tool:x402_tron_invoke
url: https://api.example.com/.well-known/agent.json
method: GET
```
---
## Security Rules for Agents
- **No Private Key Output**: The Agent MUST NOT print, echo, or output the `TRON_PRIVATE_KEY` o...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.