cast_calldata_decode
Decode raw transaction calldata into function arguments by providing a function signature and hex calldata.
Instructions
Decode raw transaction calldata 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 |
|---|---|---|---|
| calldata | Yes | Raw calldata hex string (with 4-byte selector) | |
| signature | Yes | Function signature, e.g. "transfer(address,uint256)" |