Skip to main content
Blocks, transactions, TVM event logs, and internal transactions. Tron is the leading network for USDT (TRC-20) settlement; because the TVM is EVM-compatible, TRC-20 events share the same topic signatures as ERC-20.
PropertyValue
Network IDtron-mainnet
Real-timeYes

Endpoint

https://portal.sqd.dev/datasets/tron-mainnet

Quick start

Stream USDT (TRC-20) transfers — the flagship Tron query:
curl --compressed -X POST \
  'https://portal.sqd.dev/datasets/tron-mainnet/stream' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "tron",
    "fromBlock": 79257136,
    "toBlock": 79257200,
    "fields": {
      "block": { "number": true, "timestamp": true },
      "log": { "address": true, "topics": true, "data": true }
    },
    "logs": [{
      "address": ["a614f803b6fd780986a42c78ec9c7f77e6ded13c"],
      "topic0": ["ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]
    }]
  }'
Account and contract addresses in filters (owner, to, contract, caller, transferTo) use the native 41-prefixed lowercase hex form. Log addresses and addresses encoded in topics use the 20-byte EVM-style hex form (no 41 prefix). Timestamps are Unix milliseconds; resource and value fields are decimal strings.

Schema

FieldTypeDescription
numberintegerBlock number
hashstringBlock ID (hash)
parentHashstringParent block ID
txTrieRootstringRoot hash of the transaction Merkle trie
versionintegerBlock version
timestampintegerBlock timestamp (Unix ms)
witnessAddressstringProducing witness address (41-prefixed hex)
witnessSignaturestringWitness signature over the header
FieldTypeDescription
transactionIndexintegerIndex in the block
hashstringTransaction hash (txID)
typestringContract type (e.g. TransferContract, TriggerSmartContract)
parameterobjectDecoded contract payload (type_url + value; addresses are 41-prefixed hex)
retarrayResult entries (e.g. contractRet: SUCCESS)
resultstringReceipt result (e.g. SUCCESS)
signaturearrayAuthorizing signatures
contractAddressstringContract invoked or created (41-prefixed hex)
contractResultstringHex-encoded smart-contract return value
feeLimitstringMax fee for execution (SUN)
feestringTotal fee charged (SUN)
energyUsageTotalstringTotal energy consumed
energyFeestringFee paid for energy (SUN)
netUsagestringBandwidth (net) consumed
netFeestringFee paid for bandwidth (SUN)
timestampintegerTransaction timestamp (Unix ms)
expirationintegerExpiration time (Unix ms)
FieldTypeDescription
transactionIndexintegerParent transaction index
logIndexintegerIndex in the block
addressstringEmitting contract (20-byte EVM-style hex, no 41 prefix)
datastringNon-indexed log data
topicsarrayIndexed topics (topic0 is the event signature)
FieldTypeDescription
transactionIndexintegerParent transaction index
internalTransactionIndexintegerIndex within the parent transaction
hashstringInternal transaction hash
callerAddressstringInitiator (41-prefixed hex)
transferToAddressstringRecipient (41-prefixed hex)
callValueInfoarrayTransferred values (callValue in SUN, tokenId for TRC-10)
notestringHex-encoded note (e.g. 63616c6c for “call”)
rejectedbooleanWhether the internal transaction was rejected
extrastringOptional extra data

Reference

API Reference

Field definitions and query syntax

Portal Migration

Migrate from v2 archives to Portal