Error Codes

Error Codes

When making requests to Petra through the Wallet Adapter, you may receive an error. The following is a partial list of possible errors and their corresponding codes:

Code 4000

  • Name: No Accounts
  • Message: No accounts found.

Code 4001

  • Name: User Rejection
  • Message: The user rejected the request.

Code 4100

  • Name: Unauthorized
  • Message: The requested method and/or account has not been authorized by the user.

For Petra Web-specific error codes, see the Petra Web Error Codes page.