nullclear_decode_calldata
Decode raw calldata, Solidity revert bytes, or mined transaction hashes to explain failures and flag malicious approvals before signing.
Instructions
Decode existing hex calldata, custom Solidity revert bytes, or a mined transaction hash to explain historical failures and flag malicious approvals. Use this AFTER a transaction failed or when auditing opaque 0x calldata bytes before signing (100 free calls/day/IP). Returns decoded 4-byte function signature, argument breakdown, revert reason, and approval-drainer warnings. Do NOT use to dry-run an unsigned transaction against live chain state (use nullclear_simulate_transaction instead).
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": {
"input": "<input>"
},
"name": "nullclear_decode_calldata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target EVM chain ('base' or 'eth', default 'base') | base |
| input | Yes | 0x-prefixed raw hex calldata/revert bytes OR a 66-character mined transaction hash to replay |