Errors
Summary
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
Name | Type | Value | Description |
---|
code | number | 4000 | A canonical code for this error. |
message | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4001 | A canonical code for this error. |
message | string | - | A human readable message. |
NoWalletsDetectedError
This can be thrown by most AlgorandProvider
methods and indicates that no wallets have been initialized.
Properties
Name | Type | Value | Description |
---|
code | number | 4002 | A canonical code for this error. |
message | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4003 | A canonical code for this error. |
id | string | - | The ID of the wallet. |
message | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4100 | A canonical code for this error. |
message | string | - | A human readable message. |
signer | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4200 | A canonical code for this error. |
id | string | - | The ID of the wallet. |
message | string | - | A human readable message. |
operation | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4203 | A canonical code for this error. |
genesisHash | string | - | The genesis hash of the network that is not supported. |
message | string | - | A human readable message. |
This error is thrown when the wallet attempts to sign transaction(s) but the input is malformed.
Properties
Name | Type | Value | Description |
---|
code | number | 4300 | A canonical code for this error. |
message | string | - | 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
Name | Type | Value | Description |
---|
code | number | 4301 | A canonical code for this error. |
computedGroupId | string | - | The computed ID of the supplied atomic transactions. |
message | string | - | A human readable message. |
FailedToPostSomeTransactionsError
This error is thrown when some transactions failed to be posted to the network.
Properties
Name | Type | Value | Description |
---|
code | number | 4400 | A canonical code for this error. |
message | string | - | 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. |