Open itoonx opened 6 years ago
Any resolution on this? We are getting the same error.
let b = require("bitcore-lib");
b.Address("1GJirNUCbbAjUnM7m6zLVdGMfja4uDkHnY")
TypeError: Address has mismatched network type.
Quick update. We were able to resolve this issue by setting the network values back to the Bitcoin network defaults.
Ex: https://github.com/sfoxhq/bitcore-lib/commit/d87540ff9f9289d7157fbff4d1819c504999f83f
FWIW this overrides the bitpay style addresses (start with C) which seems to get things working.
I have been used this address for get some unspent thransaction buy i got throw error like this
throw new TypeError('Address has mismatched network type.');