What the three supported layouts mean
| Signature | Selector | Arguments shown |
|---|---|---|
| transfer(address,uint256) | 0xa9059cbb | Recipient and raw amount |
| approve(address,uint256) | 0x095ea7b3 | Spender and raw allowance amount |
| transferFrom(address,address,uint256) | 0x23b872dd | From 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
- Locate the input/data field in the wallet request or transaction details.
- Paste the 0x-prefixed hex string. Do not substitute the transaction hash.
- Optionally enter decimals after verifying the specific token contract and network. Otherwise leave that field blank and inspect raw units only.
- Select Inspect calldata and compare the address arguments and amount with what you intended.
- 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.