Skip to main content
Provider requests throw errors following the JSON-RPC 2.0 and EIP-1474 specifications.

Error Structure

Standard JSON-RPC 2.0 Error Codes

Defined by JSON-RPC 2.0 specification:

Ethereum-Specific Error Codes (EIP-1474)

Defined by EIP-1474 in the -32000 to -32099 range:

Using Error Codes

Execution Reverted Errors

The -32000 (INVALID_INPUT) error code is most commonly used for contract execution failures:

Retry Strategies

Smart Retry with Error Code Filtering

Only retry on transient errors (not permanent failures):

Rate Limit Handling

Complete Error Reference

See @tevm/voltaire/JsonRpcError for:
  • All error code constants
  • JsonRpcError.from() constructor
  • ERROR_MESSAGES lookup table