mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +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
756 B
JSON
26 lines
756 B
JSON
{
|
|
"txid": "0d861f278a3b7bce7cb5a88d71e6e6a903336f95ad5a2c29b295b63835b6eee3",
|
|
"version": 1,
|
|
"size": 42,
|
|
"locktime": 0,
|
|
"vin": [
|
|
],
|
|
"vout": [
|
|
{
|
|
"value": 1.00,
|
|
"valueSat": 100000000,
|
|
"n": 0,
|
|
"scriptPubKey": {
|
|
"asm": "OP_HASH160 1c6fbaf46d64221e80cbae182c33ddf81b9294ac OP_EQUAL",
|
|
"hex": "a9141c6fbaf46d64221e80cbae182c33ddf81b9294ac87",
|
|
"reqSigs": 1,
|
|
"type": "scripthash",
|
|
"addresses": [
|
|
"7V11XGPxzBWxkiuw15a1Vgk7XT74tyYtCY"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"hex": "01000000000100e1f5050000000017a9141c6fbaf46d64221e80cbae182c33ddf81b9294ac8700000000"
|
|
}
|