Skip to main content

What it is

On the same host and with the same key as the node methods, Node API answers the history and events paths of the common TRON /v1 format. A client written for that format works after you change the host and the key.
  • Only GET; other HTTP methods get 405 method_not_allowed.
  • {address} is base58 (T…) or hex (41…, 0x41…).
  • The key goes in the TRON-PRO-API-KEY header or in the path, as for every method: https://node.tronrental.com/<YOUR_KEY>/v1/accounts/{address}/transactions.
  • Other /v1/... paths — for example /v1/accounts/{address} or /v1/contracts/{address}/events — are not served and get 404 not_found.
  • GET /healthcheck answers 200 {"ok": true} without a key: TronWeb’s isConnected() calls it.

How far back

History newer than each date is served as usual; the last page above the date still carries a fingerprint, and the call that would read below it gets a 400 saying what to pass:
  • With only_from=true an address’s outgoing side is read to the start of the network.
  • Contract calls before 2026-10-08 that may have moved TRX or tokens on (internal transactions) are refused rather than shown without them. Calls of the USDT contract are always answered: it calls no other contract.

Parameters

History — the three …/transactions paths: search_internal is accepted and has no effect. A contract’s …/transactions has one side — what was sent to it — so only_to and only_from do not apply there. Events: limit (1–200, default 20), fingerprint, only_confirmed or only_unconfirmed.

Pagination

A page with more after it carries meta.fingerprint and meta.links.next — the same URL with the new fingerprint (and your key, if you put it in the path). The last page has neither. One history call reads a bounded part of the index. A page can therefore come back shorter than limit, or even empty, and still carry next. Keep following next until it is gone; an empty page with next is not the end.

Answers

TRC-20 transfers

  • Only Transfer events; Approval is not in this history.
  • value is a string in the token’s smallest units; divide by 10^decimals.
  • block_timestamp and meta.at are in milliseconds. Addresses are base58.

Transactions

Each item is the transaction as the node stores it — txID, raw_data, raw_data_hex, signature, ret — plus fields from its receipt: blockNumber, block_timestamp (ms), net_usage, net_fee, energy_usage, energy_fee, energy_usage_total, internal_transactions, and the fee in ret[0].fee. Addresses inside raw_data are hex, as the node gives them.
  • Failed transactions (REVERT, OUT_OF_ENERGY) are included.
  • In /v1/contracts/{address}/transactions, blockNumber and block_timestamp are strings and ret[0] has no fee, as clients of this format expect.
  • An internal transaction: internal_tx_id, from_address, to_address, and data with note, rejected and call_value (TRX under _, a TRC-10 token under its id; present only when a value moved).

Events

  • Newest first: the last transaction of the block, and within it the last log.
  • _unconfirmed: true marks an event above the solidified head.
  • An unknown transaction, a block without events, or a block not produced yet: 200 with an empty data.
  • Logs are decoded with the contract’s ABI from the chain. For a contract without one, common events (Transfer, Approval, Swap, Sync and others) are decoded by their standard signature; a log that cannot be named comes with event_name: "" and an empty result.
With TronWeb, set only fullHost and the key: its event methods call these paths on the same host.

Cost and limits

The X-Node-API-WU header tells the cost of each call. A 400 for bad parameters costs at most 1 WU. See Quota units.

Errors

Every other refusal — the key, the plan, the limits — is the same as for the node methods: see Limits and errors.