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
28 lines
1.3 KiB
JSON
28 lines
1.3 KiB
JSON
{
|
|
"txid": "0d1d4edfc217d9db3ab6a9298f26a52eae3c52f55a6cb8ccbc14f7c727572894",
|
|
"version": 1,
|
|
"size": 124,
|
|
"locktime": 0,
|
|
"vin": [
|
|
],
|
|
"vout": [
|
|
{
|
|
"value": 1.00,
|
|
"valueSat": 100000000,
|
|
"n": 0,
|
|
"scriptPubKey": {
|
|
"asm": "2 02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397 021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d 02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485 3 OP_CHECKMULTISIG",
|
|
"hex": "522102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff39721021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d2102df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb48553ae",
|
|
"reqSigs": 2,
|
|
"type": "multisig",
|
|
"addresses": [
|
|
"XqV6rHmzCyFUKF2jSVg8ZkZ7oRhGLVxifK",
|
|
"XqDjpPyN61bMZAZsVbYyvouVzgV59oSmWp",
|
|
"Xe2kRBG5ZEn8T34TqvvPKwQwHEzVL9WvxH"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"hex": "01000000000100e1f5050000000069522102a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff39721021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d2102df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb48553ae00000000"
|
|
}
|