Skip to main content

Errors

Summary

CodeNameSummary
4000UnknownErrorThe default error response, usually indicates something is not quite right.
4001OperationCanceledErrorWhen a user has rejected the operation.
4002NoWalletsDetectedErrorNo wallets have been initialized.
4003WalletDoesNotExistErrorThe specified wallet does not exist.
4100UnauthorizedSignerErrorThe wallet has not given permission to use a specified signer.
4200WalletOperationNotSupportedErrorThe wallet does not support this operation.
4203NetworkNotSupportedErrorNetwork is not supported.
4300InvalidInputErrorThe input for signing transactions is malformed.
4301InvalidGroupIdErrorThe computed group ID of the atomic transactions is different from the assigned group ID.
4400FailedToPostSomeTransactionsErrorWhen some transactions were not sent properly.

UnknownError

This error is the default error and serves as the "catch all" error. This usually occurs when something has happened that is outside the bounds of graceful handling. You can check the UnknownError.message string for more information.

Properties

NameTypeValueDescription
codenumber4000A canonical code for this error.
messagestring-A human readable message.

OperationCanceledError

This error is thrown when a user has rejected or canceled the requested action on the wallet. For example, the user decides to cancel the signing of a transaction.

Properties

NameTypeValueDescription
codenumber4001A canonical code for this error.
messagestring-A human readable message.

NoWalletsDetectedError

This can be thrown by most AlgorandProvider methods and indicates that no wallets have been initialized.

Properties

NameTypeValueDescription
codenumber4002A canonical code for this error.
messagestring-A human readable message.

WalletDoesNotExistError

This can be thrown by most AlgorandProvider methods and indicates that the wallet that has been specified, by its ID, does not exist in the list of wallets.

Properties

NameTypeValueDescription
codenumber4003A canonical code for this error.
idstring-The ID of the wallet.
messagestring-A human readable message.

UnauthorizedSignerError

This error is thrown when a provided account has been specified, but the wallet has not given permission to use that account as a signer.

Properties

NameTypeValueDescription
codenumber4100A canonical code for this error.
messagestring-A human readable message.
signerstring-The address (public key) of the signer that is not authorized.

WalletOperationNotSupportedError

This can be thrown by most AlgorandProvider methods and indicates that the wallet does not support the operation you are trying to perform.

Properties

NameTypeValueDescription
codenumber4200A canonical code for this error.
idstring-The ID of the wallet.
messagestring-A human readable message.
operationstring-The name of the operation that is not supported.

NetworkNotSupportedError

This error is thrown when a provided genesis hash is not supported by the wallet.

Properties

NameTypeValueDescription
codenumber4203A canonical code for this error.
genesisHashstring-The genesis hash of the network that is not supported.
messagestring-A human readable message.

InvalidInputError

This error is thrown when the wallet attempts to sign transaction(s) but the input is malformed.

Properties

NameTypeValueDescription
codenumber4300A canonical code for this error.
messagestring-A human readable message.

InvalidGroupIdError

This error is thrown when the wallet attempts to sign atomic transactions in which the computed group ID is different from the assigned group ID.

Properties

NameTypeValueDescription
codenumber4301A canonical code for this error.
computedGroupIdstring-The computed ID of the supplied atomic transactions.
messagestring-A human readable message.

FailedToPostSomeTransactionsError

This error is thrown when some transactions failed to be posted to the network.

Properties

NameTypeValueDescription
codenumber4400A canonical code for this error.
messagestring-A human readable message.
successTxnIDs(string | null)[]-This will correspond to the stxns list sent in postTxns and will contain the ID of those transactions that were successfully committed to the blockchain, or null if they failed.