decode_calldata
Decode raw EVM calldata into human-readable function names, signatures, and parameter values for transaction inspection before signing, mempool analysis, or debugging. Uses openchain.xyz signature directory.
Instructions
Decode raw EVM calldata into a human-readable function name, canonical signature, and typed parameter values. Resolves the 4-byte selector against openchain.xyz's signature directory, then ABI-decodes the args. Use for tx inspection before signing, mempool analysis, debug. EVM-only (chain='ethereum'); 'solana' returns 400. $0.001 USDC.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"calldata_hex": "<calldata_hex>"
},
"name": "decode_calldata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM-only; 'solana' returns 400. | |
| calldata_hex | Yes | Raw EVM calldata (>=4 byte selector), with or without 0x prefix. | |
| contract_address | No | Optional. Reserved for future on-chain ABI lookups. |