eth_decode_revert
Decode raw EVM revert data from a failed transaction or eth_call on Ethereum mainnet. Handles Error(string) reverts, Panic(uint256) assertions, custom Solidity errors (requires ABI), and silent reverts. Pure computation — no RPC call needed. Pass the hex revert data from a transaction receipt or eth_call error response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Contract ABI for decoding custom errors. Pass as a JSON array of error definitions (or as a JSON-encoded string of that array). Only needed for custom errors beyond the built-in Error(string) and Panic(uint256). | |
| revert_data | Yes | Raw revert data as hex (0x-prefixed). Use "0x" or empty string for a silent revert. |