cast_abi_decode
Decode ABI-encoded hex data into human-readable values using a function signature or output types, with optional input-mode handling for 4-byte selectors.
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 |
|---|---|---|---|
| data | Yes | Hex-encoded data to decode | |
| input | No | Decode as input data (with 4-byte selector) instead of output | |
| signature | Yes | Function signature or output types, e.g. "balanceOf(address)(uint256)" |