Skip to main content

abstractWeb3BaseWallet <T>

Hierarchy

  • Array<T>
    • Web3BaseWallet

Index

Constructors

publicconstructor

Methods

publicabstractadd

  • add(account: string | T): this
  • Parameters

    • account: string | T

    Returns this

publicabstractclear

  • clear(): this
  • Returns this

publicabstractcreate

  • create(numberOfAccounts: number): this
  • Parameters

    • numberOfAccounts: number

    Returns this

publicabstractdecrypt

  • decrypt(encryptedWallet: KeyStore[], password: string, options?: Record<string, unknown>): Promise<Web3BaseWallet<T>>
  • Parameters

    • encryptedWallet: KeyStore[]
    • password: string
    • optionaloptions: Record<string, unknown>

    Returns Promise<Web3BaseWallet<T>>

publicabstractencrypt

  • encrypt(password: string, options?: Record<string, unknown>): Promise<KeyStore[]>
  • Parameters

    • password: string
    • optionaloptions: Record<string, unknown>

    Returns Promise<KeyStore[]>

publicabstractget

  • get(addressOrIndex: string | number): undefined | T
  • Parameters

    • addressOrIndex: string | number

    Returns undefined | T

publicabstractload

  • Parameters

    • password: string
    • optionalkeyName: string

    Returns Promise<Web3BaseWallet<T>>

publicabstractremove

  • remove(addressOrIndex: string | number): boolean
  • Parameters

    • addressOrIndex: string | number

    Returns boolean

publicabstractsave

  • save(password: string, keyName?: string): Promise<boolean>
  • Parameters

    • password: string
    • optionalkeyName: string

    Returns Promise<boolean>