Update index.js
This commit is contained in:
parent
def559a86a
commit
2c3997d245
@ -267,6 +267,11 @@ AddressService.prototype.__getAddressSummary = function(address, options, callba
|
|||||||
var txs = results.items;
|
var txs = results.items;
|
||||||
self._getAddressSummaryResult(txs, address, result, options);
|
self._getAddressSummaryResult(txs, address, result, options);
|
||||||
|
|
||||||
|
result.balanceSat = parseInt(result.balanceSat.toFixed());
|
||||||
|
result.totalReceivedSat = parseInt(result.totalReceivedSat.toFixed());;
|
||||||
|
result.totalSentSat = parseInt(result.totalSentSat.toFixed());;
|
||||||
|
result.txApperances = parseInt(result.txApperances.toFixed());;
|
||||||
|
|
||||||
result.balance = Unit.fromSatoshis(result.balanceSat).toBTC();
|
result.balance = Unit.fromSatoshis(result.balanceSat).toBTC();
|
||||||
result.totalReceived = Unit.fromSatoshis(result.totalReceivedSat).toBTC();
|
result.totalReceived = Unit.fromSatoshis(result.totalReceivedSat).toBTC();
|
||||||
result.totalSent = Unit.fromSatoshis(result.totalSentSat).toBTC();
|
result.totalSent = Unit.fromSatoshis(result.totalSentSat).toBTC();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user