I installed the insight api on our own node as per your instructions here:
https://github.com/bitpay/insight-api/tree/v0.3.0
The api and insight are both up and running on our nodes, so all good there, but when I try and get address info or unspents like so:
var testExplorer = new Insight(testConfig.testServer1.url, Networks.testnet);
testExplorer.getUnspentUtxos(testConfig.address2.address, function(e, utxos) { ...
Hi there,
I installed the insight api on our own node as per your instructions here: https://github.com/bitpay/insight-api/tree/v0.3.0 The api and insight are both up and running on our nodes, so all good there, but when I try and get address info or unspents like so: var testExplorer = new Insight(testConfig.testServer1.url, Networks.testnet); testExplorer.getUnspentUtxos(testConfig.address2.address, function(e, utxos) { ...
I got 404 errors, this is because the url part on the requests is simply /api/[rest of query] - as can be seen here: https://github.com/bitpay/bitcore-explorers/blob/master/lib/insight.js#L64
the path is actually /insight-api/[rest of query] - this is the insight-api default, on fixing this my unit tests all passed.
Is this an issue - or have I set insight-api up incorrectly?