diff --git a/app/controllers/socket.js b/app/controllers/socket.js index de01ba3..140e6d6 100644 --- a/app/controllers/socket.js +++ b/app/controllers/socket.js @@ -46,6 +46,13 @@ var fullTx = function(tx) { }); t.valueOut = (valueOut.toFixed(8) / util.COIN); + try { + t.vout = tx.vout.map(function(o) { + var r = {}; + r[o.scriptPubKey.addresses] = o.valueSat; + return r; + }); + } catch (e) {}; return t; };