primitives: show hex on json.

This commit is contained in:
Christopher Jeffrey 2017-08-03 16:15:03 -07:00
parent 00e85cc7c2
commit cfd1715c9f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2168,7 +2168,8 @@ TX.prototype.getJSON = function getJSON(network, view, entry, index) {
outputs: this.outputs.map((output) => { outputs: this.outputs.map((output) => {
return output.getJSON(network); return output.getJSON(network);
}), }),
locktime: this.locktime locktime: this.locktime,
hex: this.toRaw().toString('hex')
}; };
}; };