add getPublicUrlForTx to blockchain explorer
This commit is contained in:
parent
d3ebf1b2e8
commit
470df32a09
|
@ -108,4 +108,8 @@ Insight.prototype.initSocket = function() {
|
||||||
return socket;
|
return socket;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Insight.prototype.getPublicUrlForTx = function(txid) {
|
||||||
|
return this.url + '/tx/' + txid;
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = Insight;
|
module.exports = Insight;
|
||||||
|
|
|
@ -20,6 +20,7 @@ describe('Blockchain explorer', function() {
|
||||||
exp.should.respondTo('getAddressActivity');
|
exp.should.respondTo('getAddressActivity');
|
||||||
exp.should.respondTo('getUnspentUtxos');
|
exp.should.respondTo('getUnspentUtxos');
|
||||||
exp.should.respondTo('initSocket');
|
exp.should.respondTo('initSocket');
|
||||||
|
exp.should.respondTo('getPublicUrlForTx');
|
||||||
var exp = new BlockchainExplorer({
|
var exp = new BlockchainExplorer({
|
||||||
provider: 'insight',
|
provider: 'insight',
|
||||||
network: 'livenet',
|
network: 'livenet',
|
||||||
|
|
Loading…
Reference in New Issue