Skip to main content

Errors

Provider errors come in the form of a ProviderRpcError object:

interface ProviderRpcError extends Error {
code: number;
message: string;
}

Here is the list of errors:

CodeNameMessage
4001User Rejected RequestThe user rejected the request
4100UnauthorizedThe requested method and/or account has not been authorized by the user.
-32601Method Not FoundBrave wallet does not recognize the method.
-32603Interal ErrorAn internal error has occurred.
-32700Parsing ErrorInvalid JSON.