Bscscan

Bscscan connects transaction input with token transfer logs

Bscscan shows the requested token call alongside the transfer events that a contract emitted on BNB Smart Chain. Input data encodes a function and arguments; transfer logs describe movements that the emitting contract reports. Those amounts can differ because an argument is a request, while an event follows contract execution. Matching the token contract, address roles and raw units makes the comparison meaningful; a successful transaction alone does not establish how many tokens a recipient gained.

In short: A requested transfer amount becomes comparable with a logged amount only when the token contract and decimal units match.

Requested amounts and contract-reported movements

The amount passed to a token's transfer function specifies what the caller asks the contract to move. Its implementation determines the balance changes and events that follow.

A conventional BEP-20 transfer reports the moved amount in its Transfer event. Custom transfer fees can change that relationship. An inclusive fee reduces the recipient's credit, while an exclusive fee adds a separate sender debit. A difference between input and a displayed transfer therefore needs an explanation tied to the contract's accounting. The requested amount alone cannot identify which fee mechanism applies or establish the amount that reached the intended recipient.

Several token events can appear under one transaction hash when contracts call other contracts. Adding every displayed amount together can count movements between intermediate addresses or mix different tokens. The relevant comparison concerns the requested action and the events from the matching token contract that describe it.

Function bytes, execution and event data

The first four bytes of an ordinary ABI-encoded function call contain its function selector. The application binary interface (ABI) specifies how a decoder interprets these bytes. A readable function label describes that encoding; it does not record token delivery.

Call data and receipt logs

The request before execution

The standard call transfer(address,uint256) encodes a recipient and a raw token amount. Each argument occupies a 32-byte word in this fixed-argument layout. Parameter labels may differ between interfaces even when the signature stays the same. Dynamic arguments in other functions can use offsets, so the second encoded word does not universally represent a transfer amount.

The event during execution

A contract emits a Transfer event as its code executes, and retained events become part of the transaction receipt. Each log carries its emitting contract's address, topics and data. For the BEP-20 event, the sender and recipient are indexed addresses, while the raw amount belongs in the data field. Bscscan's Logs tab exposes those receipt records.

Events and balance accounting

An event is a contract's report of an operation. The code that changes token balances also decides which event values to emit. Interface compatibility does not force an arbitrary implementation to maintain honest accounting. A matching event signature identifies a data format; it does not authenticate a token's claims. Contract verification makes the accounting and event statements inspectable when source code is available.

Diagram: Bscscan - Events and balance accounting
Diagram: Events and balance accounting

View image file

The balanceOf function returns an address's balance from the token's accounting at the queried state. A receipt records events from one execution, so these records can describe different times.


Call parameters and event fields

For a direct BEP-20 transfer, the input recipient and logged recipient describe related parts of the same operation. The caller supplies the request, and the token contract reports the execution.

Call parameters and event fields
Parameter or field Value and encoding Who supplies the value
Input _to Requested recipient; address Caller chooses the requested destination
Input _value Requested raw amount; uint256 Caller supplies the amount for execution
Event _from Reported sender; indexed address Token contract reports the movement's source
Event _to Reported recipient; indexed address Token contract reports the movement's destination
Event _value Reported raw amount; non-indexed uint256 Token contract reports the transfer quantity
decimals() return Decimal exponent; uint8 Token contract defines ordinary display scaling
Call arguments describe the requested operation; event fields describe the contract-reported movement in the token's raw units.

For a plain transfer without fees or extra accounting, the requested amount and corresponding event amount agree. A smaller recipient event amount can fit a deducted transfer fee if the contract implements that behavior. A missing event does not reveal a fee amount; failure or different call semantics can leave the request without a matching movement.

Decimal scaling for amount comparisons

Decimal scaling divides the raw amount by a power of ten. Calldata and event values need the same exponent before their displayed quantities become comparable. A token that declares d decimal places represents a raw integer R as R / 10^d in ordinary decimal display. The exponent comes from that token's decimals function; it is not universal. Hexadecimal conversion changes the integer's notation, while decimal scaling changes its display unit. Neither operation changes the stored raw amount.

Token recipients and transaction destinations

The transaction destination identifies the contract initially called, while the recipient encoded in a token transfer identifies the requested token recipient. With transferFrom(address,address,uint256) , the encoded source address can also differ from the account submitting the transaction. That call uses authorization to move another address's tokens, which is where token approvals become relevant. An existing allowance can authorize the movement without a new approval call. The Transfer event's endpoints identify the reported token movement, and its emitting address identifies the token contract involved.

Does a successful transaction guarantee that tokens moved?

A successful transaction does not by itself establish that a token transfer succeeded, because receipt status and token-function return values describe different outcomes. Receipt status 1 records top-level execution success. BEP-20 and ERC-20 require callers to handle a false return, which can report failure without an exception.

Reverted execution and retained logs

A top-level revert discards the state changes and logs that the failed execution produced. The input data remains part of the recorded transaction, so an amount there still identifies the attempted request. A failed inner call can also lose its own changes while an outer contract handles the error and continues. The outer receipt then describes that continuing execution.

False returns from token functions

Returning false is not itself a revert. An application must interpret the token function's return value and decide whether to stop. If it ignores a failure return, the outer execution can succeed despite an unsuccessful token operation. This possibility comes from the token interface; some implementations instead revert on failure. Calldata contains requested arguments, so it cannot establish which return value the function produced.

Limits of fee and balance inferences

The difference between an input amount and a recipient event does not automatically identify a transfer fee or its rate. A fee-rate calculation needs the actual fee amount and the quantity on which that contract charges it. Input amounts, sender debits and recipient credits can form different fee bases, so the denominator must match the contract's rule. Network gas costs concern BNB execution and cannot fill a missing token-fee figure.

Balance comparisons must describe the same execution interval. A balance read later can include subsequent transfers, while adjacent block-end balances include every change affecting the address in that block. If several relevant transactions share a block, their combined net movement cannot isolate a single payment. For that interval, the recipient's net change equals the closing raw balance minus the opening raw balance.

Questions people ask about Bscscan

Why does a token transfer show a transaction value of 0 BNB?

The transaction's Value field measures native BNB sent with the call, not the amount moved inside a token contract. A token transfer can therefore move a nonzero quantity while sending no native BNB to the called contract. Its network fee is a separate BNB charge. The token amount belongs in the call arguments and relevant Transfer event.

Can an NFT produce the same Transfer signature as a fungible token?

ERC-721 NFTs use the same Transfer(address,address,uint256) event signature as BEP-20 tokens, though the final integer represents an NFT identifier. ERC-721 indexes that identifier, whereas the BEP-20 amount is non-indexed event data. The emitting contract and event layout determine the interpretation. Applying a fungible token's decimal scaling to an NFT identifier produces a meaningless quantity.

What does a zero-amount BEP-20 Transfer event mean?

A BEP-20 Transfer event with a raw amount of zero reports a zero-value token transfer. The standard requires zero-value transfers to behave as normal transfers and emit a Transfer event. The record therefore does not, on its own, show a payment of tokens.

When does a Transfer event's sender use the zero address?

A minting Transfer event can use the zero address as its sender to identify newly created tokens. BEP-20 recommends this convention when a contract creates tokens. It separates issuance from an ordinary transfer out of an existing holder's balance. The amount still uses the token's raw units; its meaning depends on the emitting contract's minting implementation.

Can a hexadecimal converter round a large token amount?

A converter can lose precision if it processes the raw integer through arithmetic that cannot represent it exactly. BEP-20 amounts use uint256 integers, so an exact-integer conversion should preserve every digit before decimal scaling. A rounded display cannot recover digits that conversion discarded. Compare the unrounded input and event integers when investigating a small discrepancy.

Are multiple token transfer logs under one hash separately signed transactions?

Multiple Transfer logs under one transaction hash can come from a single execution containing several contract calls. A log is an event record, so its own position does not make it a separate signed transaction. The transaction hash groups the receipt's records; the emitting addresses and event fields identify the token movements within that execution.

Last updated: