About Test Net API

(Monark Agarwal) #1

Hi All,

I was set up a instance of insight server in our end…i am able to call all API for main net but i am not able call api for testnet.
Can you please tell me what Url i have to use…I have a google cloud space for main net.

(FedFranz) #2

You have to specify that you are connecting to a testnet node:

var Networks = require('bitcore-lib').Networks;
var insight = new explorers.Insight(Networks.testnet);