Error Codes
ZumoKit uses a combination of error name and error message for errors that can be handled programmatically (e.g., there was a problem sending transaction). Below is a list of possible error names that can be returned, along with additional information about how to resolve them. Error message is returned along with error name to provide a human-readable message providing more details about the error. Wallet management and transaction related error messages can be shown to your users.
- AuthNotFound
Returned if action requires a user to be logged in but no active user can be found. Make sure user authentication has been successful before creating a wallet or performing other actions which require active user.
- InvalidWordCount
Returned when an incorrect word count is supplied while creating a mnemonic phrase. Mnemonic phrase should be 12, 15, 18, 21 or 24 words long.
- WalletLimitExceeded
Returned when trying to create more than one wallet per currency type and your account type supports only one wallet per currency.
- PasswordEmpty
Returned when trying to create a wallet with a blank password.
- MnemonicEmpty
Returned when trying to create a wallet with a blank mnemonic phrase.
- CreateWalletError
A generic error which is returned when something goes wrong creating your wallet, e.g. supplied mnemonic phrase is invalid.
- SaveWalletError
Returned when wallet creating was successful but it was not backed up in vault. Created wallet is discarded.
- RecipientAddressInvalid
Returned when recipient address is not a valid address while sending a transaction.
- GasLimitTooLow
Returned when gas limit is too low while sending a transaction. Make sure gas limit is set to 21000 or greater.
- GasPriceTooLow
Returned when gas price is too low while sending a transaction. Make sure gas price is 1 or greater.
- InsufficientFunds
Returned when there are insufficient funds for desired transaction. Make sure gas * price + value <= balance.
- SendTransactionError
A generic error which is returned when something goes wrong sending a transaction.