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): void | Promise<void>

    • Parameters

      • account: TAccount

      Returns void | Promise<void>

  • clear: function
    • clear(): void | Promise<void>

    • Returns void | Promise<void>

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

    • Parameters

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

      Returns void | Promise<void>

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

    • Parameters

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

      Returns boolean | Promise<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(): void | Promise<void>
  • Returns void | Promise<void>

abstractdisconnect

  • disconnect(): void | Promise<void>
  • Returns void | Promise<void>

getAccounts

abstractinitialize

  • initialize(): void | Promise<void>
  • Returns void | Promise<void>