Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "cli/commands/getbalance"

Index

Variables

Const HEADERS

HEADERS: string[] = [colors.blue('Currency'),colors.blue('Total Balance'),colors.blue('Wallet Balance (Not Tradable)'),colors.blue('Channel Balance (Tradable)'),]

Const command

command: "getbalance [currency]" = "getbalance [currency]"

Const describe

describe: "get total balance for a given currency" = "get total balance for a given currency"

Functions

Const builder

  • builder(argv: Argv): Argv<{}>

Const createTable

  • createTable(): GenericTable<(undefined | null | string | number | false | true | CellOptions)[]>

Const displayBalances

  • displayBalances(balances: GetBalanceResponse.AsObject): void

Const formatBalance

  • formatBalance(availableBalance: number, pendingBalance: number, inactiveBalance?: number): string

Const formatBalances

  • formatBalances(balances: GetBalanceResponse.AsObject): any[]

Const handler

  • handler(argv: Arguments<any>): Promise<void>

Generated using TypeDoc