mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 22:35:51 +01:00
56d1d13c43
* Merge #8824: Refactor TxToJSON() and ScriptPubKeyToJSON()
0ff9320
refactor TxToJSON() and ScriptPubKeyToJSON() (jonnynewbs)
Tree-SHA512: caf7d590829e221522edd5b1ab8ce67b53a2c6986d3bbe8477eab420b1007bf60f885ed0a25ba9587e468c00768360ddc31db37847e862858573eaed5ed8b0d6
* remove witness and vsize
Signed-off-by: Pasta <Pasta@dash.org>
* Add valueSat
To preserve rpc output format
* Move extrapayload and special tx json output to `TxToUniv`
* Add spent index info
26 lines
810 B
JSON
26 lines
810 B
JSON
{
|
|
"txid": "f42b38ac12e3fafc96ba1a9ba70cbfe326744aef75df5fb9db5d6e2855ca415f",
|
|
"version": 1,
|
|
"size": 54,
|
|
"locktime": 0,
|
|
"vin": [
|
|
],
|
|
"vout": [
|
|
{
|
|
"value": 0.00,
|
|
"valueSat": 0,
|
|
"n": 0,
|
|
"scriptPubKey": {
|
|
"asm": "02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397 OP_CHECKSIG",
|
|
"hex": "2102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac",
|
|
"reqSigs": 1,
|
|
"type": "pubkey",
|
|
"addresses": [
|
|
"XqV6rHmzCyFUKF2jSVg8ZkZ7oRhGLVxifK"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"hex": "0100000000010000000000000000232102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397ac00000000"
|
|
}
|