Class: KeyStore
key_stores/keystore.KeyStore
KeyStores are passed to Near via NearConfig and are used by the InMemorySigner to sign transactions.
See
Hierarchy
KeyStore
Constructors
constructor
new KeyStore()
Methods
clear
Abstract
clear(): Promise
<void
>
Returns
Promise
<void
>
Defined in
getAccounts
Abstract
getAccounts(networkId
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
networkId | string |
Returns
Promise
<string
[]>
Defined in
getKey
Abstract
getKey(networkId
, accountId
): Promise
<KeyPair
>
Parameters
Name | Type |
---|---|
networkId | string |
accountId | string |
Returns
Promise
<KeyPair
>
Defined in
getNetworks
Abstract
getNetworks(): Promise
<string
[]>
Returns
Promise
<string
[]>
Defined in
removeKey
Abstract
removeKey(networkId
, accountId
): Promise
<void
>
Parameters
Name | Type |
---|---|
networkId | string |
accountId | string |
Returns
Promise
<void
>
Defined in
setKey
Abstract
setKey(networkId
, accountId
, keyPair
): Promise
<void
>
Parameters
Name | Type |
---|---|
networkId | string |
accountId | string |
keyPair | KeyPair |
Returns
Promise
<void
>