Skip to main content

Variable: WALLET\_INPUT\_PROBLEMS

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / WALLET_INPUT_PROBLEMS

Variable: WALLET_INPUT_PROBLEMS

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

Defined in: packages/gala-core-sdk/dist/index.d.ts:172

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).