# 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), bandwidth (bytes) to any activated address for 1000 blocks (a TRX transfer ≈ 270 bytes), activation of new TRON addresses, 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. Activate a new TRON address (create its account, ~1.1 TRX at the live rate): `POST https://api.awesomefee.com/x402/v1/tron/activate` with `{"address":"T…"}` → `402` → pay → `200` `{status:"activated", address, activate_txid, block}`; an existing account → `409 ALREADY_ACTIVATED` before any payment; price: `GET https://api.awesomefee.com/x402/v1/quote?product=activate`. A TRX transfer to a new address through `tron/send` or a Proxy pass creates the receiver itself and includes it in the price (estimate: `receiver_activated: false`, `cover.activate_receiver_usdc`). 6. Buy bandwidth (bytes, 300…5 000, for 1000 blocks; the sender's own 600 free bytes a day are used up): `POST https://api.awesomefee.com/x402/v1/tron/bandwidth` with `{"address":"T…","amount":600}` → `402` → pay → `200` `{status:"delivered", address, amount, delegate_txid, source, block, expires_block}`; price: `GET https://api.awesomefee.com/x402/v1/quote?product=bandwidth&amount=600`. Not a TRON account yet → `422 ADDRESS_NOT_ACTIVATED` before any payment (buy `tron/activate` first). The estimate of a transaction gives both routes: `cover.proxy_usdc` (`tron/send`) and `cover.direct_usdc` + `cover.direct_parts` (activate + energy + bandwidth). 7. Find anything else (free): `GET https://api.awesomefee.com/v1/search?q=` → routes with `url`, `parameters`, `price`, `quote_url`, curl `example`. Sends with energy wait for the block: `tron/send` and Proxy-pass broadcasts (HTTP `/rpc/wallet/broadcast*`, `/proxy/…`, gRPC `protocol.Wallet/BroadcastTransaction`) answer after the energy and the transaction are in blocks — typically 16–20 s, up to ~2 min. Use a timeout ≥ 150 s (TronWeb defaults to 30 s, gRPC deadline ≥ 150 s). On a client timeout do not resend blindly: look up the txid (sha256 of `raw_data`) on chain and the payment status; a transaction already on chain is answered `DUP_TRANSACTION_ERROR`, the same payment returns the same answer. With a Proxy pass a resend while the first send runs gets at once `{"result":false,"code":"TX_IN_PROGRESS","message":}` (HTTP 200, node format; gRPC `Return` + trailer `x-proxy-code`) — retry after a few seconds or check the txid; a resend of a sent one gets `{"result":true,…,"tl":{"already_sent":true,"txid","first_sent_at","block"}}` (gRPC trailers `x-tl-already-sent`, `x-tl-txid`) — never a second energy order or charge. Bandwidth we supply (`tron/send`, Proxy pass, `tron/bandwidth`) is priced at its source's cost + 5 %, never above burning the same bandwidth yourself (bytes × 1 000 SUN now); the estimate, the 402 and the pass debit show the same number. Contracts that pay energy for their callers (consume_user_resource_percent < 100, e.g. the sun.io Universal Router): we sell only the sender's share; `tron/estimate` and the 402 show `energy_total`, `energy_user` (what is priced) and `energy_origin` (paid by the contract's owner). 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. **One key, like TronGrid:** the Proxy pass and the RPC pass each work as a full node key for reads and sends — TronWeb `fullHost` `https://api.awesomefee.com/rpc` with `TRON-PRO-API-KEY: ` (or `Authorization: Bearer`), gRPC `api.awesomefee.com:443`. - Proxy (`proxy/pass`, also `senders`: up to 5 TRON addresses): proxy-5, proxy-20, proxy-100 — credits in USDC, 30 days; sends get energy supplied and charged per transaction; reads cost 9 USDC micro per credit - 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); a broadcast is sent as-is, no energy (1 credit) - gRPC of the node (java-tron `api.proto`, TLS): `api.awesomefee.com:443` — `protocol.Wallet` and `protocol.WalletSolidity` with either pass (same prices; metadata `tron-pro-api-key: ` or `authorization: Bearer `; `x-tron-node: pbft` = PBFT state); `protocol.Wallet/BroadcastTransaction` gets energy with the Proxy pass - 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/)