Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BtcKeystoreClient

Hierarchy

  • BtcKeystoreClient

Implements

Index

Constructors

constructor

  • new BtcKeystoreClient(network: "BTC" | "BTCTEST" | "LTC" | "LTCTEST"): BtcKeystoreClient

Properties

ledgerSupport

ledgerSupport: boolean = false

only btc btcTest support ledger

network

network: "BTC" | "BTCTEST" | "LTC" | "LTCTEST"

Methods

checkLedgerSupport

  • checkLedgerSupport(): boolean

generateMnemonic

  • generateMnemonic(): string

getAccountFromHardware

getAccountFromMnemonic

  • getAccountFromMnemonic(address_index: number, mnemonic: string): Promise<BtcKeypair>

getCurrentNetwork

  • getCurrentNetwork(): "BTC" | "BTCTEST" | "LTC" | "LTCTEST"

recoverKeyPairByPrivateKey

  • recoverKeyPairByPrivateKey(priKey: string, options?: any): Promise<BtcKeypair>

recoverKeyPairByWIF

  • recoverKeyPairByWIF(WIF: string): Promise<BtcKeypair>

signTransaction

  • signTransaction<T>(tx: BtcUnsignedTx, signer: T, signerParam: any): Promise<string>

validateAddress

  • validateAddress(address: string): boolean

validatePrivateKey

  • validatePrivateKey(privateKey: string | Buffer): never