Module

x/polkadot/mod.ts>utilCrypto.mnemonicValidate

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

Examples

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

const mnemonic = mnemonicGenerate(); // => string
const isValidMnemonic = mnemonicValidate(mnemonic); // => boolean

Parameters

mnemonic: string
optional
onlyJs: boolean

Returns

boolean