diff --git a/config.js b/config.js index c04e868..0dc751d 100644 --- a/config.js +++ b/config.js @@ -54,9 +54,15 @@ var config = { livenet: { provider: 'insight', //url: 'https://cashexplorer.bitcoin.com', - url: 'http://localhost:2001', - translateAddresses: false, + url: 'https://bch-insight.bitpay.com:443', + translateAddresses: true, }, + testnet: { + provider: 'insight', + url: 'https://test-bch-insight.bitpay.com:443', + translateAddresses: true, + }, + }, }, pushNotificationsOpts: { diff --git a/lib/blockchainexplorer.js b/lib/blockchainexplorer.js index 3e8bf1a..a970317 100644 --- a/lib/blockchainexplorer.js +++ b/lib/blockchainexplorer.js @@ -18,7 +18,8 @@ var PROVIDERS = { 'testnet': 'https://test-insight.bitpay.com:443', }, 'bch': { - 'livenet': 'https://insight.bitpay.com:443', + 'livenet': 'https://bch-insight.bitpay.com:443', + 'testnet': 'https://test-bch-insight.bitpay.com:443', }, }, };