Module

x/polkadot/keyring/keyring.ts>Keyring

Package publishing for deno.land/x/polkadot
Go to Latest
class Keyring
implements KeyringInstance
import { Keyring } from "https://dotland.deno.dev/x/polkadot@0.2.38/keyring/keyring.ts";

@polkadot/keyring

Overview

Constructors

new
Keyring(options?: KeyringOptions)

Properties

decodeAddress
encodeAddress: (address: Uint8Array | string, ss58Format?: number) => string
readonly
pairs: KeyringPair[]
readonly
publicKeys: Uint8Array[]
readonly
type: KeypairType

Methods

addFromAddress(
address: string | Uint8Array,
encoded?: Uint8Array | null,
type?: KeypairType,
ignoreChecksum?: boolean,
): KeyringPair
addFromJson(json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
addFromMnemonic(
mnemonic: string,
type?: KeypairType,
): KeyringPair
addFromSeed(
seed: Uint8Array,
type?: KeypairType,
): KeyringPair
addFromUri(
suri: string,
type?: KeypairType,
): KeyringPair
createFromJson(unnamed 0: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair
createFromUri(
_suri: string,
type?: KeypairType,
): KeyringPair
getPair(address: string | Uint8Array): KeyringPair
getPublicKeys(): Uint8Array[]
removePair(address: string | Uint8Array): void
setSS58Format(ss58: number): void
toJson(address: string | Uint8Array, passphrase?: string): KeyringPair$Json