x402_payment_tron
Pay for x402-enabled Agent endpoints using USDT on TRON
Why use this skill?
Automate USDT payments on the TRON blockchain for AI agents. Handle 402 payment requirements, EIP-712 signatures, and infinite approvals seamlessly.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hades-ye/x402-payment-tronWhat This Skill Does
The x402_payment_tron skill provides a seamless, automated payment layer for AI agents operating within the OpenClaw ecosystem. Designed specifically for the TRON blockchain, it handles the complexities of the x402 payment protocol, allowing agents to pay for premium services or API access using USDT on the TRON network. When an agent attempts to access an x402-enabled endpoint, this skill transparently negotiates payment requirements, checks USDT allowances, manages infinite approvals when necessary to optimize gas costs, and signs EIP-712 payment permits. It essentially turns human-like intent into verified on-chain transactions, enabling a 'pay-as-you-go' model for AI agents.
Installation
To integrate this skill, use the ClawHub CLI command: clawhub install openclaw/skills/skills/hades-ye/x402-payment-tron. For development, the repository can be cloned from openclaw/skills, and you can run it using npm install followed by npm start. Ensure your environment is configured with a TRON_PRIVATE_KEY via environment variables or a valid x402-config.json file in your home directory.
Use Cases
- Monetized Agent Services: Accessing paid AI agent APIs that require micro-payments per request.
- Automated Research: Fetching real-time, high-quality data from paid endpoints where traditional subscription models are not feasible.
- Autonomous Infrastructure: Agents interacting with decentralized infrastructure that requires gas and USDT settlement for task execution.
Example Prompts
- 'Use the x402_payment_tron tool to query the agent at api.example.com and ask it to summarize the latest market trends for me.'
- 'I need data from the premium endpoint at https://data.service.com; please handle the payment and retrieval automatically.'
- 'Check the manifest for https://api.agent.finance and let me know the cost per request before invoking.'
Tips & Limitations
Always ensure your wallet holds sufficient TRX for network gas fees, as USDT transactions on TRON rely on TRX consumption. If the skill reports an 'Insufficient Allowance' error, it will initiate an infinite approval transaction—this is a one-time process designed to reduce future gas expenditure. For security, never expose your private keys; the skill is designed to load these internally. Keep your environment variables secure and avoid manual export commands in logs.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hades-ye-x402-payment-tron": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: network-access, file-read, external-api, code-execution
Related Skills
Zerion Api Skill
Skill by abishekdharshan
scrapebadger
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
clinicaltrials-gov-parser
Monitor and summarize competitor clinical trial status changes from ClinicalTrials.gov. Trigger: When user asks to track clinical trials, monitor trial status changes, get updates on specific trials, or analyze competitor trial activities. Use cases: Pharma competitive intelligence, trial monitoring, status tracking, recruitment updates, completion alerts.
theagora
Agent-to-agent service commerce. Browse a live marketplace, purchase with atomic escrow, sell services and earn USDC, check per-function reputation, trade on the exchange. 27 MCP tools for buying, selling, and verifying agent services.
agent3-hub
Universal AI resource registry — search and invoke agents, MCP servers, and APIs through a single MCP endpoint. Includes Telegram content search, Google search, X/Twitter search, and more.