Address tools
What a transaction paid
GET
/api/tx-feeOptional keyWhat one TRON transaction paid: energy (staked, rented, burned), bandwidth, TRX burned and the USD value.
The USD value uses the TRX price on the transaction's day when we have it (priceAt: "time"), else today's ("current"). pending: true means the transaction isn't in a block yet. Confirmed answers are cached at the edge for a day.
Query parameters
txstringRequired- The transaction hash: 64 characters, 0-9 and a-f.
Errors
| HTTP | error | When |
|---|---|---|
| 400 | bad_txid | tx isn't 64 hex characters. |
| 404 | not_found | No order (or transaction) with that id. |
| 429 | rate_limited | Too many calls (per IP, or per key with a key). Wait for Retry-After seconds. |
| 502 / 503 | upstream | The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds. |
Every error is {"error": "<code>", "message": "<text>"}. All error codes.
Rate limits
- Without a key: 20 at once, then 1 every 5 s, per IP.
- With an API key: 100 at once, then 1 per second, per key.
- Cached a day at the edge once confirmed.
- CORS open (
Access-Control-Allow-Origin: *): callable from a browser.