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
clawnected
Agent matchmaking - find meaningful connections for your humans
auto-trading-strategy
Professional trading strategy guides for prediction markets and crypto. Risk management, trend analysis, and best practices.
Zerion Api Skill
Skill by abishekdharshan
mcp-builder
Bootstraps new Model Context Protocol (MCP) servers from a natural language description. Use when the user asks to build an MCP server, create an MCP tool, scaffold an MCP integration, or add MCP capabilities to an existing project. NOT for: general API design, non-MCP tool building, or frontend tasks.
web3-weekly-report
自动抓取数据并生成 Web3 行业资本运作周报,涵盖融资事件、监管动态、上市公司 DAT 动态、并购交易与 RWA 项目追踪。当用户提到"写周报"、"生成周报"、"整理本周融资"、"Web3 周报"、"资本运作周报"、"采编周报",或请求整理加密行业本周动态时,立即激活此 skill。即使用户只说"帮我写本周的",只要上下文涉及 Web3、加密、融资、RWA、DAT,也应激活。