Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CrossChainRecoveryTool

An instance of the recovery tool, which encapsulates the recovery functions Instantiated with parameters:

  • bitgo: an instance of the bitgo SDK
  • sourceCoin: the coin that needs to be recovered
  • recoveryCoin: the type of address the faulty transaction was sent to

Hierarchy

  • CrossChainRecoveryTool

Index

Constructors

constructor

Properties

bitgo

bitgo: BitGo

feeRates

feeRates: object

Type declaration

  • [key: string]: number

halfSignedRecoveryTx

halfSignedRecoveryTx: HalfSignedRecoveryTx

logger

logger: any

logging

logging: boolean

recoveryAddress

recoveryAddress: string

recoveryAmount

recoveryAmount: number

recoveryCoin

recoveryCoin: AbstractUtxoCoin

recoveryTx

recoveryTx: any

sourceCoin

sourceCoin: AbstractUtxoCoin

supportedCoins

supportedCoins: string[]

Optional txInfo

wallet

wallet: any

Methods

Private _log

  • _log(...args: any[]): void
  • Internal logging function (either uses provided logger or console.log, can be turned off)

    Parameters

    • Rest ...args: any[]

      the arguments to pass to the logger

    Returns void

buildTransaction

buildUnsigned

  • buildUnsigned(callback?: NodeCallback<any>): Bluebird<any>

export

  • export(): object

getKeys

  • getKeys(passphrase: string, callback?: NodeCallback<string>): Bluebird<string>
  • Gets the wallet's encrypted keychain, then decrypts it with the wallet passphrase

    Parameters

    • passphrase: string

      wallet passphrase

    • Optional callback: NodeCallback<string>

    Returns Bluebird<string>

    decrypted wallet private key

signTransaction

Generated using TypeDoc