bitpay / bitcore-lib

A pure and powerful JavaScript Bitcoin library
https://bitcore.io/
Other
611 stars 1.03k forks source link

BCASH - Address has mismatched network type #174

Open itoonx opened 6 years ago

itoonx commented 6 years ago

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.');

jsfour commented 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.
jsfour commented 6 years ago

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.