MCPcopy Create free account
hub / github.com/bitpay/bitcore / renderAmount

Method renderAmount

packages/bitcore-cli/src/utils.ts:126–128  ·  view source on GitHub ↗
(currency: string, satoshis: number | bigint | string, opts?: ITokenObj)

Source from the content-addressed store, hash-verified

124 };
125
126 static renderAmount(currency: string, satoshis: number | bigint | string, opts?: ITokenObj): string {
127 return Utils.amountFromSats(currency, Number(satoshis), opts) + ' ' + currency.toUpperCase();
128 }
129
130 static renderStatus(status: string): string {
131 if (status !== 'complete') {

Callers 7

utils.test.tsFile · 0.80
getTxHistoryFunction · 0.80
signMessageFunction · 0.80
getUtxosFunction · 0.80
getTxProposalsFunction · 0.80
createTransactionFunction · 0.80
formatFunction · 0.80

Calls 1

amountFromSatsMethod · 0.80

Tested by

no test coverage detected