RpcErrorCode
constRpcErrorCode:object
Defined in: packages/dapp/src/rpc/errors.ts:9
Standard JSON-RPC 2.0 error codes
Type Declaration
Section titled “Type Declaration”CHAIN_DISCONNECTED
Section titled “CHAIN_DISCONNECTED”
readonlyCHAIN_DISCONNECTED:4901=4901
The provider is not connected to the requested chain
DISCONNECTED
Section titled “DISCONNECTED”
readonlyDISCONNECTED:4900=4900
The provider is disconnected from all chains
INTERNAL_ERROR
Section titled “INTERNAL_ERROR”
readonlyINTERNAL_ERROR:-32603=-32603
Internal JSON-RPC error
INVALID_INPUT
Section titled “INVALID_INPUT”
readonlyINVALID_INPUT:-32000=-32000
Missing or invalid parameters
INVALID_PARAMS
Section titled “INVALID_PARAMS”
readonlyINVALID_PARAMS:-32602=-32602
Invalid method parameter(s)
INVALID_REQUEST
Section titled “INVALID_REQUEST”
readonlyINVALID_REQUEST:-32600=-32600
The JSON sent is not a valid Request object
LIMIT_EXCEEDED
Section titled “LIMIT_EXCEEDED”
readonlyLIMIT_EXCEEDED:-32005=-32005
Request exceeds defined limit
METHOD_NOT_FOUND
Section titled “METHOD_NOT_FOUND”
readonlyMETHOD_NOT_FOUND:-32601=-32601
The method does not exist or is not available
METHOD_NOT_SUPPORTED
Section titled “METHOD_NOT_SUPPORTED”
readonlyMETHOD_NOT_SUPPORTED:-32004=-32004
Method is not implemented
PARSE_ERROR
Section titled “PARSE_ERROR”
readonlyPARSE_ERROR:-32700=-32700
Invalid JSON was received by the server
RESOURCE_NOT_FOUND
Section titled “RESOURCE_NOT_FOUND”
readonlyRESOURCE_NOT_FOUND:-32001=-32001
Requested resource not found
RESOURCE_UNAVAILABLE
Section titled “RESOURCE_UNAVAILABLE”
readonlyRESOURCE_UNAVAILABLE:-32002=-32002
Requested resource not available
TRANSACTION_REJECTED
Section titled “TRANSACTION_REJECTED”
readonlyTRANSACTION_REJECTED:-32003=-32003
Transaction creation failed
UNAUTHORIZED
Section titled “UNAUTHORIZED”
readonlyUNAUTHORIZED:4100=4100
The requested method and/or account has not been authorized by the user
UNSUPPORTED_METHOD
Section titled “UNSUPPORTED_METHOD”
readonlyUNSUPPORTED_METHOD:4200=4200
The provider does not support the requested method
USER_REJECTED
Section titled “USER_REJECTED”
readonlyUSER_REJECTED:4001=4001
User rejected the request