Decode a function call's calldata (paid $0.002)
decode_calldataDecode EVM calldata into a function signature and typed arguments, resolving the selector via provided ABI, verified source, or 4byte.directory.
Instructions
PAID $0.002 (x402, USDC on Base). Decode a contract function call. Give {chain, to?, data, abi?}; get the 4-byte selector resolved to a function signature (via provided ABI, the verified contract source, or 4byte.directory) plus fully decoded, typed arguments (tuples/arrays/nested included). Without payment returns the x402 challenge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Contract address the call targets (optional; enables verified-ABI resolution). | |
| abi | No | Optional contract ABI (JSON array or JSON string). If omitted, the ABI is resolved from the verified source (Sourcify/Blockscout) or 4byte.directory. | |
| data | Yes | Calldata (0x hex, at least the 4-byte selector). | |
| chain | Yes | EVM chain: ethereum | base | arbitrum | optimism | polygon | bsc. | |
| x_payment | No | x402 payment payload (base64) for this PAID decode. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. |