1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-01 20:08:26 +00:00
trezor-firmware/trezorlib/tests/txcache/insight_dash_tx_15575a1c874bd60a819884e116c42e6791c8283ce1fc3b79f0d18531a61bbb8a.json
Alexander Block d131b70bed Dash: Support spending DIP2 special transaction inputs (#351)
This implements support for spending of TX outputs which are part of a [DIP2](https://github.com/dashpay/dips/blob/master/dip-0002.md) special transaction, especially [DIP4 coinbases](https://github.com/dashpay/dips/blob/master/dip-0004.md#coinbase-special-transaction).

This is for Dash only and thus required the addition of `is_dash` in `tx_api.py`.

Support on the firmware side is not required for this to work as it reuses the logic from Zcash's `extra_data` and `extra_data_len` fields.
2019-01-09 14:43:30 +01:00

1 line
1.4 KiB
JSON

{"txid":"15575a1c874bd60a819884e116c42e6791c8283ce1fc3b79f0d18531a61bbb8a","version":3,"type":5,"locktime":0,"extraPayloadSize":38,"extraPayload":"01003a5200009e8ecb69a1493e3d573cc9ce8460b9a0d7b05e77ca17878c9faf73959392cef3","vin":[{"coinbase":"023a52042ab0355c08fabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000010000017cd0000000d2f6e6f64655374726174756d2f","sequence":0,"n":0}],"vout":[{"value":"40.95000262","n":0,"scriptPubKey":{"hex":"76a914cb594917ad4e5849688ec63f29a0f7f3badb5da688ac","asm":"OP_DUP OP_HASH160 cb594917ad4e5849688ec63f29a0f7f3badb5da6 OP_EQUALVERIFY OP_CHECKSIG","addresses":["yereyozxENB9jbhqpbg1coE5c39ExqLSaG"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null},{"value":"40.95000260","n":1,"scriptPubKey":{"hex":"76a9141e7754b21a4afe7d229b8ff46e613d1117a6515588ac","asm":"OP_DUP OP_HASH160 1e7754b21a4afe7d229b8ff46e613d1117a65155 OP_EQUALVERIFY OP_CHECKSIG","addresses":["yP6Y5D9bx3ih9RCAgSJNdzbiVtPYXNUE8v"],"type":"pubkeyhash"},"spentTxId":null,"spentIndex":null,"spentHeight":null}],"blockhash":"000000000c1f70ed43e42571dc18c6930de267d63f82640aa13ecee1b2508ed0","blockheight":21050,"confirmations":-635,"time":1547022378,"blocktime":1547022378,"isCoinBase":true,"valueOut":81.90000522,"size":233,"txlock":false,"cbTx":{"version":1,"height":21050,"merkleRootMNList":"f3ce92939573af9f8c8717ca775eb0d7a0b96084cec93c573d3e49a169cb8e9e"}}