Hi Guys,
I have created an script to get utxos:
var Insight = require('bitcore-explorers').Insight;
var insight = new Insight(nodeUrl, network);
insight.getUnspentUtxos(address, function (err, utxos) {
if (err) {
resolve({error: err.message});
} else {
resolve(utxos);
}
});
When I use as nodeurl: https://test-insight.bitpay.com, it returns utxos. But then I use the url of my custom node, it does not work, I have tried:
http://x.x.x.x:3001/insight-api/
http://x.x.x.x:3001/insight/
Am I using the incorrect url for my custom node? Any suggestions will be appreciated.
Thanks in advance.