API

.mdOpenAPI

Address tools

What a transaction paid

GET/api/tx-feeOptional key

What 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

HTTPerrorWhen
400bad_txidtx isn't 64 hex characters.
404not_foundNo order (or transaction) with that id.
429rate_limitedToo many calls (per IP, or per key with a key). Wait for Retry-After seconds.
502 / 503upstreamThe 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.