Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IkeystoreClient

Keystore interface that manages multiple keystore clients and expose all functions.

Hierarchy

  • IkeystoreClient

Implemented by

Index

Methods

addCoin

generateMnemonic

  • generateMnemonic(coinType: string): string

getAccountFromHardware

  • getAccountFromHardware(coinType: string, index: number, hardware: IHardware): Promise<any>
  • Get account from hardware wallet.

    Parameters

    • coinType: string

      coin type name you specified in addCoin

    • index: number

      indexPath in hardwallet wallet

    • hardware: IHardware

      harware wallet that implements IHardware interface

    Returns Promise<any>

    account

getAccountFromMnemonic

  • getAccountFromMnemonic(coinType: string, ddress_index: number, mnemonic: string): Promise<any>
  • Get specified account from mnemonic phrase

    Parameters

    • coinType: string

      coin type name you specified in addCoin

    • ddress_index: number
    • mnemonic: string

      mnemonic phrase

    Returns Promise<any>

    account

recoverKeyPairByPrivateKey

  • recoverKeyPairByPrivateKey(coinType: string, priKey: string, options?: any): Promise<any>
  • Recover key pair from private key

    Parameters

    • coinType: string

      coin type name you specified in addCoin

    • priKey: string

      private key

    • Optional options: any

      options required by recovery algorithm

    Returns Promise<any>

    recovered account

removeCoin

  • removeCoin(coinType: string): boolean

signTransaction

  • signTransaction<T>(coinType: string, tx: any, signer: T, signerParams: any): Promise<any>

validateAddress

  • validateAddress(coinType: string, address: string): boolean

validatePrivateKey

  • validatePrivateKey(coinType: string, privateKey: string | Buffer): boolean