EVM ABI encode / decode / inspect (dev tool)
evm_abiSolidity ABI work on public data: op=encode (sig like transfer(address,uint256) + args as a JSON list → selector + calldata), decode (input hex + sig or abi → named args; with types like (uint256,address) decodes return data; output=true decodes a function's return data; reverts and panics are recognised), inspect (abi JSON or one human-readable signature per line → functions/events/errors with selectors, selector collisions, ERC-165/20/721/1155 detection). Strict: non-canonical encodings are refused. Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
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": {
"op": "<op>"
},
"name": "evm_abi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| abi | No | ||
| sig | No | ||
| args | No | JSON list of arguments | |
| input | No | ||
| types | No | ||
| output | No |