Skip to main content
The Tron query builder exposes transactions, event logs, internal transactions, and block headers. Filters and returned fields use the same formats as the Tron Portal API.

Address and hex formats

Tron Portal hex strings are bare, without 0x.
  • Transaction filters and fields use 21-byte addresses beginning with 41, for example 41a614f8....
  • Log filters and log.address use the lower 20 bytes, without 41, for example a614f8....
  • Log topics are 32-byte ABI words. An indexed address occupies the final 20 bytes.
Using the 41... USDT address in a log filter returns no matches. Use the 20-byte form for addLogRequest().

Decode TRC-20 transfers

TRC-20 logs use the same ABI event layout as ERC-20 logs, but the hex strings are not 0x-prefixed. Decode them explicitly:
evmEventDecoder() cannot be reused for these logs because EVM Portal data uses 0x-prefixed hex.

Transaction request families

Transaction request methods accept logs: true and internalTransactions: true. Log and internal-transaction requests accept transaction: true. Join the returned collections with transactionIndex.

Value types

  • Transaction amounts and resource fields such as feeLimit, fee, energyUsageTotal, and netFee are bigint. The wire values are signed decimal strings.
  • Block and transaction timestamps are Unix milliseconds represented as number.
  • parameter, ret, and callValueInfo are raw JSON. Their shapes depend on the transaction type.
See the query builder reference for the complete field and filter list.