import { keyring } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts";
const { Keyring } = keyring;
@polkadot/keyring
Overview
Methods
addFromAddress(): KeyringPair
address: string | Uint8Array,
meta?: KeyringPair$Meta,
encoded?: Uint8Array | null,
type?: KeypairType,
ignoreChecksum?: boolean,
encType?: EncryptedJsonEncoding[],
addFromJson(json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
addFromMnemonic(): KeyringPair
mnemonic: string,
meta?: KeyringPair$Meta,
type?: KeypairType,
addFromPair(): KeyringPair
pair: Keypair,
meta?: KeyringPair$Meta,
type?: KeypairType,
addFromSeed(): KeyringPair
seed: Uint8Array,
meta?: KeyringPair$Meta,
type?: KeypairType,
addFromUri(): KeyringPair
suri: string,
meta?: KeyringPair$Meta,
type?: KeypairType,
addPair(pair: KeyringPair): KeyringPair
createFromJson(unnamed 0: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
createFromPair(): KeyringPair
pair: Keypair,
meta?: KeyringPair$Meta,
type?: KeypairType,
createFromUri(): KeyringPair
_suri: string,
meta?: KeyringPair$Meta,
type?: KeypairType,
getPair(address: string | Uint8Array): KeyringPair
getPairs(): KeyringPair[]
getPublicKeys(): Uint8Array[]
removePair(address: string | Uint8Array): void
setSS58Format(ss58: number): void
toJson(address: string | Uint8Array, passphrase?: string): KeyringPair$Json