monero-ecosystem / monero-python

A comprehensive Python module for handling Monero cryptocurrency
BSD 3-Clause "New" or "Revised" License
247 stars 80 forks source link

Add count confirmation to Transaction #131

Open alteralt opened 1 year ago

alteralt commented 1 year ago

print(tx)

d = {
    "as_hex": "",
    "as_json": '{\n  "version": 2, \n  "unlock_time": 0, \n  "vin": [ {\n      "key": {\n        "amount": 0, \n        "key_offsets": [ 67676384, 73313, 14832, 9310, 576, 5553, 11649, 25824, 22584, 7569, 8510, 967, 10236, 1355, 367, 1355\n        ], \n        "k_image": "4e58fa5f165d560b5327d1141773bf4ec1924b5ebac2fab8fcbfbafe8a5b5db2"\n      }\n    }\n  ], \n  "vout": [ {\n      "amount": 0, \n      "target": {\n        "tagged_key": {\n          "key": "d686774023578a0ad3f63d1b28a8bd794cf201eed65d7bf69f7ee7514e42e1d2", \n          "view_tag": "d0"\n        }\n      }\n    }, {\n      "amount": 0, \n      "target": {\n        "tagged_key": {\n          "key": "2b5e1c5c2347e56d601eae38d138441e690374b41cba67d22ec295ec08504b2e", \n          "view_tag": "30"\n        }\n      }\n    }\n  ], \n  "extra": [ 1, 231, 84, 161, 155, 104, 129, 214, 218, 104, 214, 144, 204, 226, 136, 64, 208, 218, 113, 144, 220, 198, 69, 244, 209, 11, 253, 56, 49, 234, 17, 106, 203, 2, 9, 1, 43, 84, 48, 78, 231, 214, 110, 41\n  ], \n  "rct_signatures": {\n    "type": 6, \n    "txnFee": 240600000, \n    "ecdhInfo": [ {\n        "amount": "b66b910521f0781e"\n      }, {\n        "amount": "2ce422dc9a128ff9"\n      }], \n    "outPk": [ "92133b3f2c8bb46651cfaa63ec7c0a40fb47e615841998edab563d27496dcfe4", "132c4fdc70aca89bbc47152376b961d457cd5c59fa5c94849ec211ad54ce1550"]\n  }\n}',
    "block_height": 2807013,
    "block_timestamp": 1674613556,
    "confirmations": 1741,
    "double_spend_seen": False,
    "in_pool": False,
    "output_indices": [67871916, 67871917],
    "prunable_as_hex": "",
    "prunable_hash": "93f47473ea8724e473242da8c7b478ce9c84227d910dd5495e3456ea24c6e385",
    "pruned_as_hex": "020001020010e0d1a220e1bc04f073de48c004b12b815be0c901b8b001913bbe42c707fc4fcb0aef02cb0a4e58fa5f165d560b5327d1141773bf4ec1924b5ebac2fab8fcbfbafe8a5b5db2020003d686774023578a0ad3f63d1b28a8bd794cf201eed65d7bf69f7ee7514e42e1d2d000032b5e1c5c2347e56d601eae38d138441e690374b41cba67d22ec295ec08504b2e302c01e754a19b6881d6da68d690cce28840d0da7190dcc645f4d10bfd3831ea116acb0209012b54304ee7d66e2906c087dd72b66b910521f0781e2ce422dc9a128ff992133b3f2c8bb46651cfaa63ec7c0a40fb47e615841998edab563d27496dcfe4132c4fdc70aca89bbc47152376b961d457cd5c59fa5c94849ec211ad54ce1550",
    "tx_hash": "63db59d5ecc76b54bca8f1034e1432982e329aaac210af3868237878ac5756d3",
}