Skip to content

Error list

1% edited this page Jun 14, 2024 · 2 revisions
  USER_REJECTED_REQUEST: {
    message: ['User Rejected Request']
    code: 4001
  },
  UNAUTHORIZED: {
    message: detectTranslate('Failed to sign'),
    code: 4100
  },
  UNSUPPORTED_METHOD: {
    message: detectTranslate('Unsupported Method'),
    code: 4200
  },
  DISCONNECTED: {
    message: detectTranslate('Network is disconnected'),
    code: 4900
  },
  CHAIN_DISCONNECTED: {
    message: detectTranslate('Network is disconnected'),
    code: 4901
  },
  INVALID_PARAMS: {
    message: [
                  'Undefined error. Please contact OpenBit support',  
                  'Not found address or payload to sign', 
                  'Invalid bitcoin address',
                  'You have rescinded allowance for this account in wallet' ,
                  'Unable to find account', // Account not found in OpenBit Wallet.
                  'Not found signature', 
                  'Psbt to be signed must be hex-encoded', // When performing signPsbt, the transaction's psbt must be provided in hexadecimal format.
                  'Please connect to Wallet to try this request' // The account making the request must be in the list of accounts allowed to connect 
                                                                 // between OpenBit and your Dapp.
            ]
    code: -32602
  },
  INTERNAL_ERROR: {
    message: detectTranslate('Undefined error. Please contact OpenBit support'),
    code: -32603
  }
Clone this wiki locally