From cfd1715c9febb8a6c0d866e99238598ef648c635 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 3 Aug 2017 16:15:03 -0700 Subject: [PATCH] primitives: show hex on json. --- lib/primitives/tx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/primitives/tx.js b/lib/primitives/tx.js index 188899a0..45dd7741 100644 --- a/lib/primitives/tx.js +++ b/lib/primitives/tx.js @@ -2168,7 +2168,8 @@ TX.prototype.getJSON = function getJSON(network, view, entry, index) { outputs: this.outputs.map((output) => { return output.getJSON(network); }), - locktime: this.locktime + locktime: this.locktime, + hex: this.toRaw().toString('hex') }; };