🔗evm
Last updated
Last updated
The isMnemonic
function is used to validate the format and correctness of a mnemonic phrase. It accepts a mnemonic phrase as a string and an optional wordlist
parameter, which represents the wordlist used to generate the mnemonic (default is the English wordlist). The function returns a boolean value indicating whether the mnemonic is valid or not.
Parameter | Data Type | Description |
---|---|---|
Field | Data Type | Description |
---|---|---|
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Here is an example of how to make a isMnemonic
request using the Nest SDK:
Validating a mnemonic phrase: By invoking this function with a mnemonic phrase, you can check if the provided mnemonic is in the correct format and corresponds to a valid mnemonic phrase.
Custom wordlist support: You can optionally provide a custom wordlist
parameter if the mnemonic was generated using a different wordlist than the default English wordlist.
mnemonic
string
The mnemonic phrase to be validated.
wordlist
Wordlist
(Optional) The wordlist used to generate the mnemonic. Default is English.
return value
boolean
Indicates whether the mnemonic is valid (true) or not (false).