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

x/polkadot/util-crypto/mnemonic/bip39.ts>generateMnemonic

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

Parameters

numWords:
| 12
| 15
| 18
| 21
| 24
optional
wordlist: string[]

Returns

string