Querying thetangle.org for one of my addresses, displays all TXs (= transactions) for this address and their state. thetangle.org displays pending, confirmed and reattached confirmed.
I am wondering, how to find out whether a TX has been reattached. I copied the response from findTransactionObjects for a TX which thetangle.org shows to be reattached below. If I get the inclusions for this TX (via getLatestInclusion) the response is either true (confirmed) or false (pending) but there is no state for reattached confirmed or anything similar.
So it boils down to: How do I find out, whether a TX has been attached multiple times? What are the correct API methods to use?
{
"hash": "MZWKIBSZCTXQHGVIRHEBSOXQQRIQLZTXWAEKHENPCDCOOMPZRCNNIJLKSVEMUHVDLDOPYUOUPHPE99999",
"signatureMessageFragment": "BVWSAPWUODFAYKTGUUDN[...]",
"address": "ZOWKEWUCNRDICY9DWEPWGYCUZBZIFHR9MFK9ECSEDDTWNHVQYYHH9YMTVFODAWEEMNLURHCTXDXPGIVAD",
"value": 114500000,
"obsoleteTag": "999999999999999999999999999",
"timestamp": 1513188557,
"currentIndex": 16,
"lastIndex": 22,
"bundle": "ARLGWHSAGU9YPPKZWCDKPBIJSOQG9KGZHPWY9YLLLIPBPJXQUDBTLIVWIYKJCYZGDESTWRAJHEJOAEHZC",
"trunkTransaction": "LXBCVAUIHNRYZAZVJDUMNAZ99HIZLPXRHFVXXDYAAVYEHVKPQD9SLOFEJBMAEFSXKIRFYMADGPPGZ9999",
"branchTransaction": "IILWVKCHFVD9ZAZSBGNTZNKMXQFEEUAIBIDVLGSNYXLNY9X9VEXUT9AOJTKSRU9SNGOJPSDRV9UT99999",
"tag": "999999999999999999999999999",
"attachmentTimestamp": 1513188938868,
"attachmentTimestampLowerBound": 0,
"attachmentTimestampUpperBound": 3812798742493,
"nonce": "AECEQEDICORQBOIWRLFQYYAIZDQ"
},
getTransactionObjects(). I have three transactions withcurrentIndex: 0. Does this mean, the bundle has been reattached twice? In other words: Wouldn't a more simple solution be to check whether I see more than a single Tx withcurrentIndex: 0? – ralf Dec 15 '17 at 14:14