bitcore-node
bitcore-node copied to clipboard
`getDetailedTransaction` arguments should accept txid as buffer
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) {
//...
});