Typically, these errors will be easily parseable and have both a code and an explanation. For example:
Solana
Error messages and codes
List of Solana error codes and messages Phantom returns for connections, transactions, and signing requests.
When making requests to Phantom in establishing a connection, sending a transaction, or signing a message, Phantom may respond with an error. The following is a list of all possible error codes and their meanings. These error messages are inspired by Ethereum’s EIP-1474 and EIP-1193.
If your operation can be built as a v0 transaction, offer that option to Ledger users. Build and simulate a new v0 transaction, then request a new signature; do not reuse signatures from the v1 transaction. Some operations may not fit v0 limits or offer a v0 option. See Ledger’s support issue for updates.
Was this page helpful?