Validates a mnemonic seed phrase against the BIP39 standard with detailed feedback.
Checks (in order):
The seed phrase words (already normalized or raw).
A result object with isValid, error message, wordCount, and invalidWords.
const result = validateSeedPhrase(['abandon', 'abandon', ...]);if (!result.isValid) { console.error(result.error); console.log('Invalid words:', result.invalidWords);} Copy
const result = validateSeedPhrase(['abandon', 'abandon', ...]);if (!result.isValid) { console.error(result.error); console.log('Invalid words:', result.invalidWords);}
Validates a mnemonic seed phrase against the BIP39 standard with detailed feedback.
Checks (in order):