LocalUserAccountProvider

Class
Implements UserAccountProvider using a KeyStore instance and a Provider instance. See the LocalUserAccountProvider section of the advanced guide for more details.
export class LocalUserAccountProvider<TKeyStore extends KeyStore = KeyStore, TProvider extends Provider = Provider> 
  extends UserAccountProviderBase<TProvider> 
  implements UserAccountProvider 

Constructor

constructor

public constructor({ keystore, provider }: { readonly keystore: TKeyStore; readonly provider: TProvider }) 

Parameters

__0
{ readonly keystore: TKeyStore; readonly provider: TProvider; }

Properties

currentUserAccount$
Observable<UserAccount | undefined>
userAccounts$
Observable<readonly UserAccount[]>
networks$
Observable<readonly NetworkType[]>
keystore
TKeyStore
executeInvokeMethod
<T extends TransactionReceipt>(options: ExecuteInvokeMethodOptions<T>) => Promise<TransactionResult<T, InvocationTransaction>>
executeInvokeScript
<T extends TransactionReceipt>(options: ExecuteInvokeScriptOptions<T>) => Promise<TransactionResult<T, InvocationTransaction>>

Methods

deleteUserAccount

(id: UserAccountID) => Promise<void> 

updateUserAccountName

(options: UpdateAccountNameOptions) => Promise<void> 

iterActionsRaw

(network: NetworkType, options?: IterOptions) => AsyncIterable<RawAction> 

getCurrentUserAccount

public getCurrentUserAccount(): UserAccount | undefined 

getUserAccounts

public getUserAccounts(): readonly UserAccount[] 

getNetworks

public getNetworks(): readonly NetworkType[] 

selectUserAccount

public async selectUserAccount(id?: UserAccountID): Promise<void> 

Parameters

  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE