How this calculator works
The first four bytes are always shown as the selector.
JSON and human-readable ABIs are parsed as data and passed to Viem’s decoder; no user code is executed.
Decoded BigInt values are converted to readable strings before display.
The calculation
selector = first 4 bytes of calldata; remaining bytes are decoded against the matching ABI functionA concrete scenario
ERC-20 transfer calldata beginning with 0xa9059cbb can be decoded as transfer(address,uint256) when that function is present in the supplied ABI.
Sources used
Privacy: Calculator inputs are processed locally in your browser. CoinCalcs does not receive or store these inputs. Theme and cookie preferences may be stored on this device.
What this estimate cannot guarantee
- A selector alone does not prove contract intent or safety.
- Proxy contracts and overloaded functions can require the implementation ABI.
- CoinCalcs does not query an external selector database in Phase 1.