# AwesomeFee for AI agents: TRON resources via x402 > TRON energy and transaction sending for AI agents, paid per call in USDC on Base via x402 v2: no account, no API key, no TRX and no gas for the payer. What is sold: TRON energy delegated to any address for 1000 blocks (a USDT TRC-20 transfer needs about 65 000 energy, about 131 000 to an address that never held USDT; with it the transfer burns no TRX), sending a signed transaction with its energy included, prepaid passes for a TRON full node, for sending through our Proxy and for address events. How to pay: x402 v2, scheme `exact`, USDC on Base (`eip155:8453`), an EIP-3009 authorization signed by the payer's wallet. Prices: agent price in USDC at the live TRX/USD rate. Quotes, transaction estimates and address analysis are free. ## Canonical calls 1. Price and payment terms, GET only (free): `GET https://api.awesomefee.com/x402/v1/quote?product=energy&amount=65000&address=` → `price_usdc`, `accepts[0]` (`scheme` exact, `network` eip155:8453, `asset` USDC, `amount` in USDC atomic units, `payTo`, `maxTimeoutSeconds`), `resource.url`, and `pay` (method, url, body to repeat). With `address` the quote is `payable` until `valid_until`. 2. Buy energy: `POST https://api.awesomefee.com/x402/v1/tron/energy` with `{"address":"","amount":65000}` → `402`: the same terms in the `PAYMENT-REQUIRED` header (base64 JSON) and in the body. Sign `accepts[0]` and repeat the same POST with `PAYMENT-SIGNATURE` (base64 PaymentPayload) → `200` with the delivery and `PAYMENT-RESPONSE` (the USDC settlement on Base). 3. Send a signed transaction with its energy: `POST https://api.awesomefee.com/x402/v1/tron/send` with `{"signed_tx": }` → `402` → pay → `200` with `txid`, `block`, `result`. 4. Estimate a transaction (free): `POST https://api.awesomefee.com/x402/v1/tron/estimate` with `{"trc20_transfer":{"owner":"T…","token":"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t","to":"T…","amount":"1000000"}}` → energy, bandwidth, what is missing and its price; `buyable: false` with `refusal` (e.g. `ADDRESS_RESERVED`) = we would not sell to that owner, stop or use another address. 5. Find anything else (free): `GET https://api.awesomefee.com/v1/search?q=` → routes with `url`, `parameters`, `price`, `quote_url`, curl `example`. About the answers: `202` means paid and still in progress — poll `https://api.awesomefee.com/x402/v1/payments/{payment_id}` and never pay again; if an order cannot be fulfilled the USDC is refunded to the payer automatically. An empty or incomplete body gets `402` with example terms and the missing fields named in `error`. Any x402 v2 client does the 402 → sign → repeat loop: `@x402/fetch`, `@x402/axios`, Python `x402`. ## Docs - [OpenAPI 3.1](https://api.awesomefee.com/openapi.yaml): every route, request and response schemas, `x-payment-info`, error codes - [Search](https://api.awesomefee.com/v1/search?q=energy): the catalogue of routes (no `q` = everything) - [x402 manifest](https://api.awesomefee.com/.well-known/x402): paid routes and how to pay - [Skill](https://api.awesomefee.com/SKILL.md): when to use, recipe "send USDT without TRX", refusals - [Full text for LLMs](https://api.awesomefee.com/llms-full.txt): this file, the skill, all examples and the OpenAPI in one file - [Status](https://api.awesomefee.com/x402/v1/status): whether payments, sending and refunds work right now ## Passes `POST /x402/v1/{proxy/pass | rpc/pass | events/sub}` with `{"tier": ""}`, paid the same way; the answer has a `token` for `Authorization: Bearer` and the URL to use. `tier` = tier name or its USDC price. - Proxy (`proxy/pass`, also `senders`: up to 5 TRON addresses): proxy-5, proxy-20, proxy-100 — credits in USDC, 30 days; broadcast to `https://api.awesomefee.com/proxy` as usual, energy is supplied and charged per transaction - Node reads (`rpc/pass`): rpc-trial 0.5 = 50 000 credits / 7 days; rpc-s 9 = 1M; rpc-m 35 = 5M; rpc-l 120 = 20M; rpc-xl 300 = 60M (30 days; 1 credit per ordinary call); TronWeb `fullHost` `https://api.awesomefee.com/rpc`, `TRON-PRO-API-KEY` - Address events (`events/sub`): ev-s 3 = 10 addresses, 200 000 events; ev-m 15 = 100, 2M; ev-l 60 = 1 000, 10M (30 days); webhook or WebSocket at `https://api.awesomefee.com/v1/events` - Balance: `GET https://api.awesomefee.com/x402/v1/pass` with the token (free) ## Examples - [curl: 402 → sign → 200 by hand](https://awesomefee.com/agents/examples/curl.sh) with [signer](https://awesomefee.com/agents/examples/sign-x402.mjs) - [JavaScript, @x402/fetch](https://awesomefee.com/agents/examples/x402-fetch.mjs) - [JavaScript, @x402/axios](https://awesomefee.com/agents/examples/x402-axios.mjs) - [Python, x402 + requests](https://awesomefee.com/agents/examples/x402_requests.py) ## Optional - MCP server `https://api.awesomefee.com/mcp` (Streamable HTTP): one tool `search` and these docs as resources; it never pays. [Server card](https://api.awesomefee.com/mcp/server-card), [AI catalog](https://api.awesomefee.com/.well-known/ai-catalog.json), [MCP client config](https://awesomefee.com/agents/examples/mcp-config.json) - [Agents overview for people](https://awesomefee.com/docs/en/agents/overview/) - [AwesomeFee documentation](https://awesomefee.com/docs/en/)