Skip to main content

Error codes

Pali uses JSON-RPC, EIP-1193, EIP-1474, and wallet-specific errors. Dapps should always inspect both error.code and error.message.

Standard JSON-RPC

CodeMeaning
-32700Parse error.
-32600Invalid request.
-32601Method not found or unavailable.
-32602Invalid params.
-32603Internal error.

Ethereum provider errors

CodeMeaning
4001User rejected the request.
4100Unauthorized account or method.
4200Unsupported method.
4900Provider disconnected.
4901Provider disconnected from the specified chain.

EIP-1474 style errors

CodeMeaning
-32000Invalid input.
-32001Resource not found.
-32002Resource unavailable.
-32003Transaction rejected.
-32004Method not supported.
-32005Request limit exceeded.

Pali-specific common errors

CodeMeaning
4101Method is only available for a different chain family, such as EVM-only or UTXO-only.
4874Method does not support hardware wallets.
5710Bundle's chain has no RPC configured in the wallet (wallet_getCallsStatus / wallet_showCallsStatus).
5720Duplicate dapp-provided bundle id in wallet_sendCalls.
5730Unknown bundle id for wallet_getCallsStatus / wallet_showCallsStatus.

Best practices

  • Treat 4001 as a normal user cancellation.
  • Treat 4101 as a prompt to guide the user to the right network family.
  • Do not retry blocking requests in a tight loop. Pali protects users from popup spam.
  • Show actionable copy for unsupported smart-account networks, missing gas, rejected validator setup, or guardian recovery delays.