Skip to content

Commit

Permalink
Fix insight client to use /insight-api instead of /api.
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Hudgins committed Jun 3, 2016
1 parent 98f2238 commit 5cecf9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Insight.prototype.getUnspentUtxos = function(addresses, callback) {
return new Address(address);
});

this.requestPost('/api/addrs/utxo', {
this.requestPost('/insight-api/addrs/utxo', {
addrs: _.map(addresses, function(address) {
return address.toString();
}).join(',')
Expand Down Expand Up @@ -99,7 +99,7 @@ Insight.prototype.broadcast = function(transaction, callback) {
transaction = transaction.serialize();
}

this.requestPost('/api/tx/send', {
this.requestPost('/insight-api/tx/send', {
rawtx: transaction
}, function(err, res, body) {
if (err || res.statusCode !== 200) {
Expand All @@ -124,7 +124,7 @@ Insight.prototype.address = function(address, callback) {
$.checkArgument(_.isFunction(callback));
address = new Address(address);

this.requestGet('/api/addr/' + address.toString(), function(err, res, body) {
this.requestGet('/insight-api/addr/' + address.toString(), function(err, res, body) {
if (err || res.statusCode !== 200) {
return callback(err || body);
}
Expand Down

0 comments on commit 5cecf9d

Please sign in to comment.