ERC-20 calldata decoder: transfers and approvals

Offline edition · 29 November 2026. Optional reference links need internet. No inputs are sent or stored by these tools.

ERC-20 calldata can encode a recipient, spender and raw token amount. This local decoder inspects three standard layouts—transfer, approve and transferFrom—and shows the arguments under an ERC-20 interpretation. A matching layout does not prove which contract will execute it or whether a request is safe.

Inspect a supported calldata layout

Paste the transaction’s input/data field, not a transaction hash, signed transaction, wallet recovery phrase or private key. The transaction’s target contract address is a separate field and is not verified here.

Examples use invented amounts and repeated-digit address placeholders.

Inspection runs locally and does not save or send the calldata. The optional download contains the calldata, address arguments and results. No wallet connection, RPC request, signing or transaction broadcasting.

What the three supported layouts mean

Recognized standard function signatures
SignatureSelectorArguments shown
transfer(address,uint256)0xa9059cbbRecipient and raw amount
approve(address,uint256)0x095ea7b3Spender and raw allowance amount
transferFrom(address,address,uint256)0x23b872ddFrom address, recipient and raw amount

The first four bytes are the function selector. The arguments follow in 32-byte ABI words. Address arguments occupy the final 20 bytes of their word with zero padding; uint256 amounts use the full word. This decoder accepts exact-length standard encodings only and rejects extra data, missing words and nonzero address padding.

How to use the decoder

  1. Locate the input/data field in the wallet request or transaction details.
  2. Paste the 0x-prefixed hex string. Do not substitute the transaction hash.
  3. Optionally enter decimals after verifying the specific token contract and network. Otherwise leave that field blank and inspect raw units only.
  4. Select Inspect calldata and compare the address arguments and amount with what you intended.
  5. Check the target contract, network, wallet simulation and actual execution status separately. This tool checks none of those.

Worked example: raw amount versus display amount

The Transfer example encodes raw amount 1,234,567 and an illustrative recipient ending in repeated 1 digits. With six decimals, that amount displays as 1.234567 tokens. With eighteen decimals, the same integer displays as 0.000000000001234567 tokens. The bytes do not supply the decimals metadata, so guessing the decimal count can radically change the apparent amount.

Use the exact token decimals converter to check the conversion independently. The base-unit guide explains precision and contract identity.

Does approve transfer my tokens immediately?

The standard approve layout requests an allowance for a spender; it is not the same function as transfer. An approval can enable later spending, subject to the contract’s behavior. A maximum uint256 amount is often used as an effectively unlimited allowance. This decoder labels the encoded value without claiming that a particular contract treats it that way.

A zero approval request is not evidence that a previous allowance has already been revoked. It must be executed successfully on the intended contract, and current state matters. Read the token approvals guide for the difference between a request, an allowance and a successful change.

Why a selector match is not a safety verdict

ERC-721 NFTs use the same approve(address,uint256) and transferFrom(address,address,uint256) signatures. Their final integer is a token ID, not an ERC-20 amount. A four-byte selector is not a unique identity or trust certificate. Other signatures can collide, and a contract can interpret data or behave unexpectedly. This tool has no verified ABI, bytecode, target address or chain state. It does not detect malicious contracts, simulate transfers, inspect wallet signatures or tell you to approve a request.

Addresses are displayed in normalized lowercase. This is not an EIP-55 checksum validation. The parser does not support permit signatures, Permit2, multicall, swaps, NFT semantics, arbitrary ABIs, transaction receipts or event logs. An unsupported result means only that this limited decoder cannot interpret the supplied layout.

Sources and scope

Primary references reviewed 29 November 2026: the ERC-20 function definitions, ERC-721 shared signatures and Solidity ABI specification. The implementation uses fixed selectors and exact integer parsing, with no added runtime library.