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

Method convertFeeRate

packages/bitcore-cli/src/utils.ts:303–306  ·  view source on GitHub ↗
(chain: string, feeRate: number | string)

Source from the content-addressed store, hash-verified

301 }
302
303 static convertFeeRate(chain: string, feeRate: number | string): number {
304 const feeRateStr = Utils.displayFeeRate(chain, feeRate);
305 return parseFloat(feeRateStr.split(' ')[0]);
306 }
307
308 static amountFromSats(chain: string, sats: number, opts?: ITokenObj) {
309 if (opts?.decimals) {

Callers 1

utils.test.tsFile · 0.80

Calls 2

displayFeeRateMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected