Skip to main content

abstractLocalWallet <TAccount, TOptions, TStorageKey>

experimental

Hierarchy

  • Wallet<TOptions, TStorageKey>
    • LocalWallet

Index

Constructors

constructor

  • new LocalWallet<TAccount, TOptions, TStorageKey>(options?: TOptions): LocalWallet<TAccount, TOptions, TStorageKey>

Properties

abstractaccountStore
experimental

accountStore: { add: any; clear: any; delete: any; has: any; values: any }

Type declaration

  • add: function
    • add(account: TAccount): MaybePromise<void>

    • Parameters

      • account: TAccount

      Returns MaybePromise<void>

  • clear: function
    • clear(): MaybePromise<void>

    • Returns MaybePromise<void>

  • delete: function
    • delete(account: { id: TAccount[id] }): MaybePromise<void>
    • delete(accountId: TAccount[id]): MaybePromise<void>

    • Parameters

      • account: { id: TAccount[id] }
        • id: TAccount[id]

      Returns MaybePromise<void>

  • has: function
    • has(account: { id: TAccount[id] }): MaybePromise<boolean>
    • has(accountId: TAccount[id]): MaybePromise<boolean>

    • Parameters

      • account: { id: TAccount[id] }
        • id: TAccount[id]

      Returns MaybePromise<boolean>

  • values: function
    • values(): Iterable<TAccount, any, any>

    • Returns Iterable<TAccount, any, any>

abstractreadonlyaccounts$

accounts$: Observable<PolkadotSignerAccount[]>

abstractreadonlyconnected$

connected$: Observable<boolean>

abstractreadonlyid

id: string

abstractreadonlyname

name: string

Methods

abstractconnect

  • connect(): MaybePromise<void>
  • Returns MaybePromise<void>

abstractdisconnect

  • disconnect(): MaybePromise<void>
  • Returns MaybePromise<void>

getAccounts

abstractinitialize

  • initialize(): MaybePromise<void>
  • Returns MaybePromise<void>