Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/mnemonic/index.ts>mnemonicGenerate

Package publishing for deno.land/x/polkadot
Go to Latest
function mnemonicGenerate
import { mnemonicGenerate } from "https://deno.land/x/polkadot@0.2.39/util-crypto/mnemonic/index.ts";

Examples

import { mnemonicGenerate } from 'https://deno.land/x/polkadot@0.2.39/util-crypto/mod.ts';

const mnemonic = mnemonicGenerate(); // => string

Parameters

optional
numWords:
| 12
| 15
| 18
| 21
| 24
= [UNSUPPORTED]
optional
wordlist: string[]
optional
onlyJs: boolean

Returns

string