cast_calldata_decode
Decode raw transaction calldata with 4-byte selector into human-readable function arguments using a given function signature.
Instructions
Decode raw transaction calldata (with 4-byte selector) into function arguments (cast calldata-decode)
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": {
"signature": "<signature>",
"calldata": "<calldata>"
},
"name": "cast_calldata_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | Function signature, e.g. "transfer(address,uint256)" | |
| calldata | Yes | Raw transaction calldata (0x-prefixed, includes the 4-byte selector) |