Skip to main content
Version: 3.0.0

Errors

interface ProviderRpcError {
message: string;
code: number;
data?: { method?: string };
stack?: string;
}

Provider errors

Errors generated on the wallet/provider itself

https://eips.ethereum.org/EIPS/eip-1193#provider-errors

Status codeNameDescription
4001User Rejected RequestThe user rejected the request.
4100UnauthorizedThe requested method and/or account has not been authorized by the user.
4200Unsupported MethodThe Provider does not support the requested method.
4900DisconnectedThe Provider is disconnected from all chains.
4901Chain DisconnectedThe Provider is not connected to the requested chain.

JSON RPC errors

Errors coming from ETH nodes

EVM RPC specific errors

https://eips.ethereum.org/EIPS/eip-1474#error-codes

Status codeNameDescription
-32000Invalid inputMissing or invalid parameters
-32001Resource not foundRequested resource not found
-32002Resource unavailableRequested resource not available
-32003Transaction rejectedTransaction creation failed
-32004Method not supportedMethod is not implemented
-32005Limit exceededRequest exceeds defined limit
-32006JSON-RPC version not supportedVersion of JSON-RPC protocol is not supported

Standard RPC errors

https://www.jsonrpc.org/specification#error_object

Status codeNameDescription
-32700Parse errorInvalid JSON
-32600Invalid requestJSON is not a valid request object
-32601Method not foundMethod does not exist
-32602Invalid paramsInvalid method parameters
-32603Internal errorInternal JSON-RPC error

Was this helpful?