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

Method confirmationId

packages/bitcore-cli/src/utils.ts:89–91  ·  view source on GitHub ↗
(copayer: { xPubKeySignature: string })

Source from the content-addressed store, hash-verified

87 }
88
89 static confirmationId(copayer: { xPubKeySignature: string }): string {
90 return parseInt(copayer.xPubKeySignature.substring(-4), 16).toString().substring(-4);
91 }
92
93 static parseAmount(text: string | number | bigint): number {
94 if (typeof text !== 'string') {

Callers 1

utils.test.tsFile · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected