Class BadMnemonicError

Hierarchy

  • Error
    • BadMnemonicError

Constructors

  • Parameters

    • mnemonic: default
    • reason: string
    • unknownWordIndices: number[]

    Returns BadMnemonicError

    Hideconstructor

Properties

cause?: unknown
message: string
mnemonic: default

The mnemonic that failed validation.

name: string
reason: "BadLength" | "UnknownWords" | "ChecksumMismatch"

The reason for which the mnemonic failed validation.

stack?: string
unknownWordIndices: number[]

The indices in the mnemonic that were not found in the BIP-39 standard English word list.

prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc