Module

x/polkadot/mod.ts>utilCrypto.mnemonicGenerate

Package publishing for deno.land/x/polkadot
Go to Latest
function utilCrypto.mnemonicGenerate
import { utilCrypto } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { mnemonicGenerate } = utilCrypto;

Examples

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

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

Parameters

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

Returns

string