Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TxFormatProvider

Index

Constructors

constructor

Properties

Private bitcoreCash

bitcoreCash: any

Private bwcProvider

bwcProvider: BwcProvider

Private configProvider

configProvider: ConfigProvider

Private filter

Private logger

logger: Logger

pendingTxProposalsCountForUs

pendingTxProposalsCountForUs: number

Private rate

Methods

formatAlternativeStr

  • formatAlternativeStr(coin: string, satoshis: number): string

formatAmount

  • formatAmount(satoshis: number, fullPrecision?: boolean, coin?: string): any

formatAmountStr

  • formatAmountStr(coin: string, satoshis: number): string

formatToUSD

  • formatToUSD(coin: string, satoshis: number): Promise<any>

parseAmount

  • parseAmount(coin: string, amount: any, currency: string, onlyIntegers?: boolean): object
  • Parameters

    • coin: string
    • amount: any
    • currency: string
    • Optional onlyIntegers: boolean

    Returns object

    • alternativeIsoCode: string
    • amount: any
    • amountSat: any
    • amountUnitStr: any
    • currency: string

processTx

  • processTx(coin: string, tx: any, useLegacyAddress: boolean): any

satToUnit

  • satToUnit(amount: any): number

toCashAddress

  • toCashAddress(address: string, withPrefix?: boolean): string

toFiat

  • toFiat(coin: string, satoshis: number, code: string): Promise<string>

toLegacyAddress

  • toLegacyAddress(address: string): string

weiToUnit

  • weiToUnit(amount: any): number