Skip to main content
JSON-RPC errors are returned as objects with a code and message field inside the error key of the response.

Standard JSON-RPC error codes

Ethereum execution errors

Decoding revert reasons

When a transaction reverts, the data field may contain an ABI-encoded revert reason:

Common causes and fixes