decode_calldata
Decode a transaction's calldata against the target contract's verified ABI (Sourcify): the function signature, its selector and the argument values (static types decoded; dynamic types shown raw and labelled). Use it to explain what a pending or past transaction does. Not for the whole ABI (use get_abi), a transaction's status (use get_tx_status) or computing a selector from a signature (use convert_evm). Returns JSON: chain, address, function, selector, args, source. Read-only. Needs your API key.
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>",
"address": "<address>",
"data": "<data>"
},
"name": "decode_calldata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Calldata (0x…, at least the 4-byte selector) | |
| chain | Yes | Chain slug, e.g. 'eth_mainnet' | |
| address | Yes | Contract address (0x…) |