bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

BCASH - Address has mismatched network type

Open itoonx opened this issue 8 years ago • 2 comments

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

itoonx avatar Nov 16 '17 00:11 itoonx

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 avatar Dec 04 '17 22:12 jsfour

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.

jsfour avatar Dec 06 '17 19:12 jsfour