Skip to main content

index/variables/WALLET_INPUT_PROBLEMS.md

const WALLET_INPUT_PROBLEMS: readonly ["empty", "unrecognized_format", "unknown_mnemonic_word", "mnemonic_checksum"]

Why createWallet refused its input (INVALID_WALLET_INPUT.params.reason), never naming any part of it (it may be a key or a mnemonic):

  • empty: nothing but whitespace;
  • unrecognized_format: neither 64 hex digits nor 12 / 24 words of letters;
  • unknown_mnemonic_word: a word that is not in the BIP-39 English wordlist;
  • mnemonic_checksum: every word is known but the phrase's checksum is wrong (a typo or a swapped word).