Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "cli/utils"

Index

Variables

Const SATOSHIS_PER_COIN

SATOSHIS_PER_COIN: number = 10 ** 8

Functions

Const coinsToSats

  • coinsToSats(coinsQuantity: number): number
  • Returns a number of coins as an integer number of satoshis.

    Parameters

    • coinsQuantity: number

    Returns number

Const generateHeaders

  • generateHeaders(headers: string[]): string[]

getDefaultCertPath

  • getDefaultCertPath(): string

Const satsToCoinsStr

  • satsToCoinsStr(satsQuantity: number): string
  • Returns a number of satoshis as a string representation of coins with up to 8 decimal places.

    Parameters

    • satsQuantity: number

    Returns string

shorten

  • shorten(key: string, length?: number): string
  • Parameters

    • key: string
    • Default value length: number = 10

    Returns string

showSeed

  • showSeed(seedMnemonicList: string[]): void

trim

  • trim(key: string, length?: number): string
  • Parameters

    • key: string
    • Default value length: number = 10

    Returns string

Const waitForCert

  • waitForCert(certPath: string): Promise<void>
  • Waits up to 5 seconds for the tls.cert file to be created in case this is the first time xud has been run.

    Parameters

    • certPath: string

    Returns Promise<void>

Generated using TypeDoc