Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Optional altScriptHash

altScriptHash: undefined | number

Optional supportAltScriptDestination

supportAltScriptDestination: undefined | false | true

Accessors

defaultSigHashType

  • get defaultSigHashType(): number

network

type

  • get type(): string

Static coinTokenPatternSeparator

  • get coinTokenPatternSeparator(): string

Static validAddressTypes

  • get validAddressTypes(): UnspentType[]

Methods

allowsAccountConsolidations

  • allowsAccountConsolidations(): boolean

baseUnitsToBigUnits

  • baseUnitsToBigUnits(baseUnits: string | number): string

bigUnitsToBaseUnits

  • bigUnitsToBaseUnits(bigUnits: string | number): string

calculateFeeAmount

  • calculateFeeAmount(params: object, callback?: NodeCallback<number>): Bluebird<number>

calculateRecoveryAddress

  • calculateRecoveryAddress(scriptHashScript: Buffer): any

calculateSignatureHash

  • calculateSignatureHash(transaction: any, inputIndex: any, pubScript: any, amount: any, hashType: any, isSegwitInput: any): any

canonicalAddress

  • canonicalAddress(address: any, version?: string): any
  • Canonicalize a Bitcoin Cash address for a specific version

    Starting on January 14th, 2018 Bitcoin Cash's bitcoin-abc node switched over to using cashaddr encoding for all of their addresses in order to distinguish them from Bitcoin Core's. https://www.bitcoinabc.org/cashaddr. We're sticking with the old base58 format because migrating over to the new format will be laborious, and we want to see how the space evolves

    Parameters

    • address: any
    • Default value version: string = "base58"

      the version of the desired address, 'base58' or 'cashaddr', defaulting to 'base58', 'bech32' is also supported for backwards compatibility but is deprecated and will be removed

    Returns any

    address string

createMultiSigAddress

  • createMultiSigAddress(addressType: string, signatureThreshold: number, keys: Buffer[]): MultiSigAddress

deriveKeyWithSeed

  • deriveKeyWithSeed(__namedParameters: object): object

enterprises

explainTransaction

feeEstimate

formatForOfflineVault

generateAddress

generateKeyPair

  • generateKeyPair(seed: Buffer): object

getAddressInfoFromExplorer

  • getAddressInfoFromExplorer(addressBase58: string): Bluebird<any>

getAddressPrefix

  • getAddressPrefix(): string

getBaseFactor

  • getBaseFactor(): number

getChain

  • getChain(): string

getCoinLibrary

  • getCoinLibrary(): any

getExtraPrebuildParams

getFamily

  • getFamily(): string

getFullName

  • getFullName(): string

getLatestBlockHeight

getRecoveryFeePerBytes

  • getRecoveryFeePerBytes(): Bluebird<number>

getRecoveryFeeRecommendationApiBaseUrl

  • getRecoveryFeeRecommendationApiBaseUrl(): Bluebird<string>

getRecoveryMarketPrice

  • getRecoveryMarketPrice(): Bluebird<string>

getUnspentInfoFromExplorer

  • getUnspentInfoFromExplorer(addressBase58: string): Bluebird<any>

initiateRecovery

isBitGoTaintedUnspent

  • isBitGoTaintedUnspent(unspent: any): boolean

isValidAddress

  • isValidAddress(address: string, forceAltScriptSupport?: boolean): boolean

isValidMofNSetup

  • isValidMofNSetup(__namedParameters: object): boolean

isValidPub

  • isValidPub(pub: string): boolean

keyIdsForSigning

  • keyIdsForSigning(): number[]

keychains

markets

newWalletObject

  • newWalletObject(walletParams: any): Wallet

parseSignatureScript

parseTransaction

pendingApprovals

postProcessPrebuild

preCreateBitGo

prepareTransactionBuilder

  • prepareTransactionBuilder(txBuilder: any): any

presignTransaction

recover

  • Builds a funds recovery transaction without BitGo

    Parameters

    • params: RecoverParams
      • userKey: [encrypted] xprv, or xpub
      • backupKey: [encrypted] xprv, or xpub if the xprv is held by a KRS provider
      • walletPassphrase: necessary if one of the xprvs is encrypted
      • bitgoKey: xpub
      • krsProvider: necessary if backup key is held by KRS
      • recoveryDestination: target address to send recovered funds to
      • scan: the amount of consecutive addresses without unspents to scan through before stopping
      • ignoreAddressTypes: (optional) array of AddressTypes to ignore, these are strings defined in Codes.UnspentTypeTcomb
         for example: ['p2shP2wsh', 'p2wsh'] will prevent code from checking for wrapped-segwit and native-segwit chains on the public block explorers
    • Optional callback: NodeCallback<any>

    Returns Bluebird<any>

recoverFromWrongChain

recoveryBlockchainExplorerUrl

  • recoveryBlockchainExplorerUrl(url: string): string

signMessage

  • signMessage(key: object, message: string | Buffer, callback?: NodeCallback<Buffer>): Bluebird<Buffer>

signRecoveryTransaction

  • signRecoveryTransaction(txb: any, unspents: Output[], addresses: any, cosign: boolean): any
  • Apply signatures to a funds recovery transaction using user + backup key

    Parameters

    • txb: any

      a transaction builder object (with inputs and outputs)

    • unspents: Output[]

      the unspents to use in the transaction

    • addresses: any

      the address and redeem script info for the unspents

    • cosign: boolean

      whether to cosign this transaction with the user's backup key (false if KRS recovery)

    Returns any

    the transaction builder originally passed in as the first argument

signTransaction

supplementGenerateWallet

supportsBlockTarget

  • supportsBlockTarget(): boolean

supportsP2shP2wsh

  • supportsP2shP2wsh(): boolean

supportsP2wsh

  • supportsP2wsh(): boolean

transactionDataAllowed

  • transactionDataAllowed(): boolean

url

  • url(suffix: string): string

valuelessTransferAllowed

  • valuelessTransferAllowed(): boolean

verifyAddress

verifyRecoveryTransaction

verifySignature

  • verifySignature(transaction: any, inputIndex: number, amount: number, verificationSettings?: object): boolean

verifyTransaction

wallets

webhooks

Static createInstance

Static inferAddressType

  • inferAddressType(addressDetails: object): string | null

Generated using TypeDoc