cast_abi_decode
Decode ABI-encoded hex data into human-readable values by specifying the function signature and hex data. Use the input flag to decode function arguments instead of return values.
Instructions
Decode ABI-encoded hex data back into human-readable values (cast abi-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>",
"data": "<data>"
},
"name": "cast_abi_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | Solidity function signature whose output types to decode against, e.g. "balanceOf(address)(uint256)" or "transfer(address,uint256)" | |
| data | Yes | Hex-encoded ABI data to decode (0x-prefixed) | |
| input | No | If true, decode as input data (function args). If false/omitted, decode as output data (return values). |