defaults to window.localStorage
defaults to near-api-js:keystore:
Removes all items that start with prefix
from local storage
Gets the account(s) from local storage
The targeted network. (ex. default, betanet, etc…)
Gets a KeyPair from local storage
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
Get the network(s) from local storage
Removes a KeyPair from local storage
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
Stores a KeyPair in local storage.
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
The key pair to store in local storage
This class is used to store keys in the browsers local storage.
See
https://docs.near.org/docs/develop/front-end/naj-quick-reference#key-store
Example