x402-payment-tronPay for x402-enabled Agent endpoints using USDT on TRON
Install via ClawdBot CLI:
clawdbot install Hades-Ye/x402-payment-tronInvoke 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>
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.
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) |
```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 Manifesttool:x402_tron_invoke
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 | - |
Generated Mar 1, 2026
Businesses deploy an x402-enabled AI agent to handle customer inquiries on their website. Each chat session automatically deducts a small USDT fee from the customer's TRON wallet, enabling pay-per-use support without subscription models. This is ideal for e-commerce or SaaS platforms seeking scalable, on-demand support solutions.
Content creators use the skill to access AI agents for generating articles, social media posts, or marketing copy. Payments in USDT are made per request, allowing freelancers or agencies to monetize AI tools directly without intermediaries. This supports a microtransaction-based economy for digital content.
Financial analysts invoke x402 agents to process market data, generate reports, or predict trends. Each analysis request triggers a USDT payment, providing a cost-effective way to access advanced AI insights without upfront software costs. Suitable for fintech startups or investment firms.
Game developers integrate x402 agents to offer in-game AI helpers, such as strategy advisors or narrative generators. Players pay small USDT fees per use, enhancing gameplay with personalized AI interactions while generating revenue for developers. This applies to blockchain-based or traditional gaming platforms.
Medical professionals use the skill to query AI agents for preliminary diagnostics or research summaries, with each query paid in USDT. This enables secure, on-demand access to AI-powered healthcare tools, supporting clinics or telemedicine services in improving patient care efficiency.
Charge users a small USDT fee for each AI agent invocation, enabling low-cost access without subscriptions. Revenue scales with usage, ideal for high-frequency services like chatbots or content generation. This model minimizes barriers to entry and aligns costs with value delivered.
Developers offer x402-enabled AI endpoints as a service, where third-party apps pay USDT per API call. This creates a decentralized marketplace for AI tools, with revenue generated from usage across multiple integrations. It supports scalable B2B applications in various industries.
Provide basic AI services for free, while advanced features (e.g., complex analysis or high-volume processing) require USDT payments via the skill. This attracts users with free access and upsells premium capabilities, driving revenue from power users or enterprise clients.
💬 Integration Tip
Ensure the TRON_PRIVATE_KEY is securely managed via environment variables or config files, and always test with the Nile testnet before deploying to mainnet to avoid transaction costs.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.