Key takeaways
- A TRC-20 transfer is a
TriggerSmartContractcall to the token contract. The call runstransfer()ortransferFrom(), and the TRC-20 standard requires it to emit aTransferevent. - The node records the event as a log with three parts: the address of the contract that emitted it, a
topicsarray, and adatafield. A failed call leaves no log, so an investigator who finds one knows the call succeeded. - In a
Transferlog,topics[0]is the hash of the event signature,topics[1]andtopics[2]are the sender and the recipient, anddataholds the amount. - Explorers build their TRC-20 transfer lists by decoding these logs. The log's contract address identifies which token moved, and it is the one part the emitting contract cannot choose.
A block explorer shows 1,000 USDT moving from one address to another. No TransferContract carried that value. USDT is a contract, a transfer of it is a call to that contract, and the balances change inside the contract’s own storage.
The call leaves an event behind. A contract reports a token transfer or an approval by emitting one, and the node stores each event as a log in the transaction’s receipt. An investigator who follows only native transfers sees TRX and TRC-10 move and misses the TRC-20 transfers.
This article covers what a log entry is, how a token transfer becomes one, and how to decode it. Token Standards on TRON covers the standards themselves.
A token transfer is a contract call that emits an event
A native TRX transfer is a TransferContract, a transaction type that carries the sender, the recipient, and the amount as its own fields. A TRC-20 transfer has no transaction type of its own.
Moving a TRC-20 token takes a TriggerSmartContract transaction that calls the token contract’s transfer() or transferFrom() method. The method changes balances in the contract’s storage and emits an event, as the standard requires. TIP-20 says that transfer() and transferFrom() “MUST fire the Transfer event,” and it adds: “Transfers of 0 values MUST be treated as normal transfers and fire the Transfer event.”
When a wallet calls transfer() directly, the recipient and the amount are in the transaction too, encoded in the call’s data field. That field records what the caller asked for, and a call that fails keeps it. In block 88,086,600, read through TronGrid on 17 November 2026, one USDT transfer failed with OUT_OF_ENERGY. Its call data still carried the amount, and its receipt had no log.
Internal transactions are a different record. An internal transaction records a call, an asset transfer, or another operation that a contract makes while it runs. An event log is data the contract chooses to emit. The Developer Hub says a TRC-20 transfer is tracked by its Transfer event log and is not an internal transaction.
Anatomy of a log entry
Each event a transaction emits becomes one entry in the log field of that transaction’s TransactionInfo. The TVM writes the entry with one of five opcodes, LOG0 to LOG4, and the number in the name is the count of topics. An entry has three parts:
| Part | What it holds |
|---|---|
address | The contract that emitted the event. For a token transfer this is the token contract, so it identifies which token moved. The TVM fills it in. |
topics | Up to four 32-byte values. In an ordinary event, topics[0] is the event signature hash and each later entry is one indexed parameter. |
data | The non-indexed parameters, concatenated. |
A node returns the log address as 20 bytes, without the 41 prefix that a TRON address has in hex. Adding the prefix and Base58Check-encoding the result gives the “T” address.
topics[0] identifies the event type. It is the Keccak-256 hash of the event’s signature, which is its name and parameter types written with no spaces. For a token transfer the signature is Transfer(address,address,uint256), and its hash is ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. A Transfer event declared with that signature has the same first topic in every contract that emits it. TRC-721 uses the same signature, so an NFT transfer has this first topic too. Its token ID is a third indexed topic, and its data field is empty. An event declared anonymous is the exception to the layout. It leaves out the signature hash, and its indexed parameters start at topics[0].
The event definition sets where each parameter goes. TIP-20’s Transfer event marks the sender and the recipient as indexed, so they become topics[1] and topics[2]. Each is a 32-byte word: 12 zero bytes, then the 20-byte address. The value is not indexed, so it goes in data. The Approval event that an approval emits has the same layout, with the owner and the spender in the topics and the allowance amount in the data.
One transfer read on 17 November 2026 shows the parts together. TronGrid returned a single log for USDT transaction 6c3726bf…0641 in block 88,086,640. The log’s address decoded to the USDT contract, TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t. Its three topics were the Transfer hash, the sender, and the recipient. Its data word was 0x11e1a300, which is 300,000,000 base units, and USDT has six decimals, so the transfer was 300 USDT.
Reading transfers from logs
A TRC-20 transfer list is built from these logs. The reader scans the logs, matches topics[0] against the Transfer hash, takes the token contract from the log’s address, the sender and recipient from the topics, and the amount from the data. TronGrid serves the result already decoded: /v1/contracts/{address}/events returns a contract’s events, and /v1/accounts/{address}/transactions/trc20 returns an account’s TRC-20 transfers. TRC-10 transfers do not come from logs. A TRC-10 transfer is a TransferAssetContract, and its token, sender, recipient, and amount are fields of the transaction.
An investigator can run the same decoding without an explorer. The signature hash is constant, so a filter on topics[0] returns the Transfer events of every contract that uses the signature, TRC-20 and TRC-721 alike. Adding the log address narrows the result to one token. Adding an address in topics[1] or topics[2] narrows it to the transfers one wallet sent or received. The Developer Hub’s TRC-20 interface says Transfer also fires on a mint, from the zero address, and on a burn, to it, so those events appear in the same results.
The logs also record transfers that the top-level transaction does not name. When a swap or a batched payout moves a token inside a larger call, the transaction names only the contract the signer called, such as a router. A token contract that follows the standard still emits a Transfer log for each transfer it makes during that call.
What a log does not show
Two limits apply. A failed call leaves no log. When execution reverts or throws, java-tron clears the logs the call had written. On 17 November 2026, TronGrid returned receipts with no log for a reverted call and for the out-of-Energy USDT transfer described above.
An event is also only what a contract chose to emit. The TVM sets the log’s address and does not check the topics or the data, so any contract can emit a Transfer-shaped log with any sender, recipient, and value. TIP-20 requires a token to emit the event when it transfers tokens, but the protocol does not enforce the standard. A log proves that the contract at its address emitted it. Whether a balance moved depends on that contract’s code, which is why Fake USDT, Counterfeit Tokens, and Wallet Drainers on TRON starts from the contract address.
What this means for a reader
TRC-20 flow on TRON is read from logs, and TRX and TRC-10 flow is read from the transactions themselves. A view built on TRX movement does not include TRC-20 transfers, because they move no native asset.
For a token that follows the standard, an investigator can rebuild a wallet’s history in that token from the contract’s Transfer logs that name the wallet in topics[1] or topics[2]. A place in topics[1] does not prove that the wallet signed anything. A transferFrom call is made by its caller, and TIP-20 lets it carry a zero amount, so a log can name a wallet as the sender in a transaction that wallet never signed.
Before relying on an amount, read the transaction to see which contract was called and what the caller asked for. Then read the logs in its receipt, and compare each log’s contract address with the token’s published address.
Sources
- Event log — TRON Developer Hub: events are recorded in the
logfield of the transaction’sTransactionInfoby the LOG opcode family; the structure of an entry (address,topics,data);topics[0]as the Keccak-256 hash of the event signature, with theTransfer(address,address,uint256)hashddf252ad…b3ef; up to three indexed parameters, or four for an anonymous event; and the log address returned without the41prefix. - tips/tip-20.md at master · tronprotocol/tips · GitHub — TIP-20, “TRC-20 Token Standard”: the
Transfer(address indexed _from, address indexed _to, uint256 _value)andApprovalevent definitions, the requirement thattransfer()andtransferFrom()MUST fireTransfer, including for zero values, andtransferFromas the method that lets an approved contract transfer tokens on the owner’s behalf. - GetTransactionInfoById — TRON Developer Hub: the FullNode API that returns a transaction’s receipt, including its event logs.
- Opcodes — TRON Developer Hub: the five log opcodes,
LOG0toLOG4. - Internal transactions — TRON Developer Hub: TRC-20 transfers are not internal transactions, are implemented in contract storage, and are tracked by parsing the
Transferevent log. - TRC-721 protocol interfaces — TRON Developer Hub: the TRC-721
Transferevent, whose three parameters are all indexed. Its canonical signature,Transfer(address,address,uint256), is the same as TRC-20’s, so the hash is the same. - TRC-20 protocol interface — TRON Developer Hub:
Transferalso fires on a mint, from the zero address, and on a burn, to it. - Get events by contract address — TRON Developer Hub: the TronGrid endpoint
/v1/contracts/{address}/events. - Get TRC-20 transaction info by account address — TRON Developer Hub: the TronGrid endpoint
/v1/accounts/{address}/transactions/trc20. - Tron.proto — tronprotocol/protocol — the
ContractTypeenum (TransferContract1,TransferAssetContract2,TriggerSmartContract31) and theTransactionInfo.Logmessage with its three fields. - balance_contract.proto — tronprotocol/protocol — the protocol definition of
TransferContract(owner_address,to_address,amount). - smart_contract.proto — tronprotocol/protocol — the protocol definition of
TriggerSmartContract(owner_address,contract_address,call_value,data,call_token_value,token_id). - asset_issue_contract.proto — tronprotocol/protocol — the protocol definition of
TransferAssetContract(asset_name,owner_address,to_address,amount). - tronprotocol/java-tron — OperationActions.java at GreatVoyage-v4.8.2.4 — node source at the GreatVoyage-v4.8.2.4 release: the log action takes the address from the executing contract and the topics and data from the contract’s stack and memory.
- tronprotocol/java-tron — VMActuator.java at GreatVoyage-v4.8.2.4 — node source: when execution reverts or throws, the logs written during the call are cleared.
- TronGrid API: wallet/gettransactioninfobyid — read on 17 November 2026. Transaction
6c3726bfd2e21448c832d39842ba842f4df16f409da457f577ea19b31bce0641(block 88,086,640): one log, three topics, data0x11e1a300. Transaction6458c25942eb160d949bb0d2a4f343afab7004127f8d999971253940ebf1dd3b(block 88,086,600,OUT_OF_ENERGY) and transaction9c703593e34c6ff7967a608e321b25ffb523107ef872873f2d83e138cbd83d0a(REVERT): no log. - TronGrid API: wallet/gettransactionbyid — read on 17 November 2026: transaction
6458c259…dd3bis aTriggerSmartContractto the USDT contract whosedatabegins with thetransfer(address,uint256)selectora9059cbband carries the recipient and an amount of 924,339,000,000 base units. - TRC-20 contract interaction — TRON Developer Hub: a
transfer(address,uint256)call passes the recipient and the amount as the call’s parameter. - TronGrid API: wallet/triggerconstantcontract — read on 17 November 2026: USDT’s
decimals()returned 6.