Skip to content

RpcErrorCode

const RpcErrorCode: object

Defined in: packages/dapp/src/rpc/errors.ts:9

Standard JSON-RPC 2.0 error codes

readonly CHAIN_DISCONNECTED: 4901 = 4901

The provider is not connected to the requested chain

readonly DISCONNECTED: 4900 = 4900

The provider is disconnected from all chains

readonly INTERNAL_ERROR: -32603 = -32603

Internal JSON-RPC error

readonly INVALID_INPUT: -32000 = -32000

Missing or invalid parameters

readonly INVALID_PARAMS: -32602 = -32602

Invalid method parameter(s)

readonly INVALID_REQUEST: -32600 = -32600

The JSON sent is not a valid Request object

readonly LIMIT_EXCEEDED: -32005 = -32005

Request exceeds defined limit

readonly METHOD_NOT_FOUND: -32601 = -32601

The method does not exist or is not available

readonly METHOD_NOT_SUPPORTED: -32004 = -32004

Method is not implemented

readonly PARSE_ERROR: -32700 = -32700

Invalid JSON was received by the server

readonly RESOURCE_NOT_FOUND: -32001 = -32001

Requested resource not found

readonly RESOURCE_UNAVAILABLE: -32002 = -32002

Requested resource not available

readonly TRANSACTION_REJECTED: -32003 = -32003

Transaction creation failed

readonly UNAUTHORIZED: 4100 = 4100

The requested method and/or account has not been authorized by the user

readonly UNSUPPORTED_METHOD: 4200 = 4200

The provider does not support the requested method

readonly USER_REJECTED: 4001 = 4001

User rejected the request