|
@ -78,7 +78,7 @@ class Transactions { |
|
|
async getTransaction(txid, fees) { |
|
|
async getTransaction(txid, fees) { |
|
|
try { |
|
|
try { |
|
|
const tx = await this.rpcClient.getrawtransaction(txid, true) |
|
|
const tx = await this.rpcClient.getrawtransaction(txid, true) |
|
|
return this._prepareTxResult(tx) |
|
|
return this._prepareTxResult(tx, fees) |
|
|
} catch(e) { |
|
|
} catch(e) { |
|
|
Logger.error(e, 'Bitcoind RPC : Transaction.getTransaction()') |
|
|
Logger.error(e, 'Bitcoind RPC : Transaction.getTransaction()') |
|
|
return Promise.reject(errors.generic.GEN) |
|
|
return Promise.reject(errors.generic.GEN) |
|
|