Nhảy tới nội dung
Phiên bản: near-api-js@1.1.0

Class: KeyStore

key_stores/keystore.KeyStore

KeyStores are passed to Near via NearConfig and are used by the InMemorySigner to sign transactions.

See

connect

Hierarchy

Constructors

constructor

new KeyStore()

Methods

clear

Abstract clear(): Promise<void>

Returns

Promise<void>

Defined in

key_stores/keystore.ts:13


getAccounts

Abstract getAccounts(networkId): Promise<string[]>

Parameters

NameType
networkIdstring

Returns

Promise<string[]>

Defined in

key_stores/keystore.ts:15


getKey

Abstract getKey(networkId, accountId): Promise<KeyPair>

Parameters

NameType
networkIdstring
accountIdstring

Returns

Promise<KeyPair>

Defined in

key_stores/keystore.ts:11


getNetworks

Abstract getNetworks(): Promise<string[]>

Returns

Promise<string[]>

Defined in

key_stores/keystore.ts:14


removeKey

Abstract removeKey(networkId, accountId): Promise<void>

Parameters

NameType
networkIdstring
accountIdstring

Returns

Promise<void>

Defined in

key_stores/keystore.ts:12


setKey

Abstract setKey(networkId, accountId, keyPair): Promise<void>

Parameters

NameType
networkIdstring
accountIdstring
keyPairKeyPair

Returns

Promise<void>

Defined in

key_stores/keystore.ts:10