Web3S_Demo > Web 3S Mnemonic Function Library > GenerateMnemonic

GenerateMnemonic

Generates mnemonic sentence that contains specified number of words from wordlist of specified language.

Inputs

In
Exec

Language
EWeb3S_WordlistLanguage Enum

the language of the wordlist to use.

Sentence Length
EWeb3S_SentenceLength Enum

the amount of words in sentence to generate. Valid sentence lengths: 12, 15, 18, 21 or 24 words.

Outputs

Out
Exec

Error Message
String

if generation process failed will contain error message, otherwise empty.

Mnemonic Sentence
String

if generation process successful will return generated mnemonic sentence, otherwise empty.

Success
Boolean

true if generation process successful, otherwise false.