bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

`getDetailedTransaction` arguments should accept txid as buffer

Open braydonf opened this issue 10 years ago • 0 comments

Requested behavior (use buffer for txid argument):

var txid = new Buffer('7482cdaa26c1f2a6ed7eb26d69032fbf298e84c03e7aa952ff3d18d0b6b605a3', 'hex');
this.node.getDetailedTransaction(txid, function(err, detailedTransaction) {
  //...
});

Current behavior (needs to be converted to string):

var txid = new Buffer('7482cdaa26c1f2a6ed7eb26d69032fbf298e84c03e7aa952ff3d18d0b6b605a3', 'hex');
this.node.getDetailedTransaction(txid.toString('hex'), function(err, detailedTransaction) {
  //...
});

braydonf avatar Jun 22 '16 17:06 braydonf