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

Method getSegwitInfo

packages/bitcore-cli/src/utils.ts:265–270  ·  view source on GitHub ↗
(addressType: string)

Source from the content-addressed store, hash-verified

263 }
264
265 static getSegwitInfo(addressType: string) {
266 return {
267 useNativeSegwit: ['witnesspubkeyhash', 'witnessscripthash', 'taproot'].includes(addressType),
268 segwitVersion: addressType === 'taproot' ? 1 : 0
269 };
270 }
271
272 static getFeeUnit(chain: string) {
273 switch (chain.toLowerCase()) {

Callers 3

utils.test.tsFile · 0.80
registerMethod · 0.80
createThresholdSigWalletFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected