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

x/polkadot/keyring/types.ts>KeyringInstance

Package publishing for deno.land/x/polkadot
Go to Latest
interface KeyringInstance
import { type KeyringInstance } from "https://deno.land/x/polkadot@0.2.37/keyring/types.ts";

Properties

readonly
pairs: KeyringPair[]
readonly
publicKeys: Uint8Array[]
readonly
type: KeypairType

Methods

decodeAddress(
encoded: string | Uint8Array,
ignoreChecksum?: boolean,
ss58Format?: Prefix,
): Uint8Array
encodeAddress(key: Uint8Array | string, ss58Format?: Prefix): string
setSS58Format(ss58Format: Prefix): void
addPair(pair: KeyringPair): KeyringPair
addFromAddress(
address: string | Uint8Array,
encoded?: Uint8Array | null,
type?: KeypairType,
ignoreChecksum?: boolean,
): KeyringPair
addFromJson(pair: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
addFromMnemonic(
mnemonic: string,
type?: KeypairType,
): KeyringPair
addFromPair(
pair: Keypair,
type?: KeypairType,
): KeyringPair
addFromSeed(
seed: Uint8Array,
type?: KeypairType,
): KeyringPair
addFromUri(
suri: string,
type?: KeypairType,
): KeyringPair
createFromJson(json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
createFromPair(): KeyringPair
createFromUri(
suri: string,
type?: KeypairType,
): KeyringPair
getPair(address: string | Uint8Array): KeyringPair
getPairs(): KeyringPair[]
getPublicKeys(): Uint8Array[]
removePair(address: string | Uint8Array): void
toJson(address: string | Uint8Array, passphrase?: string): KeyringPair$Json