ethers#Wordlist TypeScript Examples
The following examples show how to use
ethers#Wordlist.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: mnemonic.ts From avalanchejs with BSD 3-Clause "New" or "Revised" License | 6 votes |
/**
* Return wordlists
*
* @param language a string specifying the language
*
* @returns A [[Wordlist]] object or array of strings
*/
getWordlists(language?: string): string[] | Wordlist {
if (language !== undefined) {
return this.wordlists[`${language}`]
} else {
return this.wordlists
}
}