Skip to content

Commit

Permalink
primitives: show hex on json.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 3, 2017
1 parent 7127a82 commit afd34c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/primitives/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
};
};

Expand Down

0 comments on commit afd34c4

Please sign in to comment.