Browse Source

add getPublicUrlForTx to blockchain explorer

activeAddress
Ivan Socolsky 10 years ago
parent
commit
470df32a09
  1. 4
      lib/blockchainexplorers/insight.js
  2. 1
      test/blockchainexplorer.js

4
lib/blockchainexplorers/insight.js

@ -108,4 +108,8 @@ Insight.prototype.initSocket = function() {
return socket;
};
Insight.prototype.getPublicUrlForTx = function(txid) {
return this.url + '/tx/' + txid;
};
module.exports = Insight;

1
test/blockchainexplorer.js

@ -20,6 +20,7 @@ describe('Blockchain explorer', function() {
exp.should.respondTo('getAddressActivity');
exp.should.respondTo('getUnspentUtxos');
exp.should.respondTo('initSocket');
exp.should.respondTo('getPublicUrlForTx');
var exp = new BlockchainExplorer({
provider: 'insight',
network: 'livenet',

Loading…
Cancel
Save