Class MultiContractKeyStoreAbstract
Constructors
Methods
AbstractgetAccounts
getAccounts(networkId: string): Promise<string[]> Returns Promise<string[]>
AbstractgetContracts
getContracts(networkId: string, accountId: string): Promise<string[]> Parameters
- networkId: string
- accountId: string
Returns Promise<string[]>
AbstractgetKey
getKey( networkId: string, accountId: string, contractId: string,): Promise<KeyPair> Parameters
- networkId: string
- accountId: string
- contractId: string
Returns Promise<KeyPair>
AbstractgetNetworks
getNetworks(): Promise<string[]> Returns Promise<string[]>
AbstractremoveKey
removeKey( networkId: string, accountId: string, contractId: string,): Promise<void> Parameters
- networkId: string
- accountId: string
- contractId: string
Returns Promise<void>
AbstractsetKey
setKey( networkId: string, accountId: string, keyPair: KeyPair, contractId: string,): Promise<void> Parameters
- networkId: string
- accountId: string
- keyPair: KeyPair
- contractId: string
Returns Promise<void>
KeyStores are passed to near!Near via near!NearConfig and are used by the signer!InMemorySigner to sign transactions.
See
connect