diff --git a/lib/Rpc.js b/lib/Rpc.js index 47ce37a6..9f78c8d3 100644 --- a/lib/Rpc.js +++ b/lib/Rpc.js @@ -30,6 +30,7 @@ Rpc._parseTxResult = function(info) { // Outputs => add total var valueOutSat = 0; info.vout.forEach( function(o) { + o.value = o.value.toFixed(8); valueOutSat += o.value * bitcore.util.COIN; delete o.scriptPubKey.hex; });