0

Say I buy a coffee mug, a box of tea bags, and a half liter of honey in the span of five minutes using Bitcoin.

Since the Bitcoin network creates a block every ten minutes or so, these transactions will be within one single block.

Once the block containing the transactions is created can I use a blockchain explorer to view the transactions in chronological order?

1 Answer 1

1

Yes. The transactions will be in the correct order chronologically, or else block validation would fail because there would be missing inputs to the transactions out of order. See Is there a fixed order for all transactions in the block chain?

Another way to do this is to see which previous outputs each transaction references. If they are in the same block, they will reference each other and you can determine order that way. See also Can multiple transactions transferring the same bitcoin be done in one block?. You cannot use a timestamp, because the block is what is timestamped, so all transactions in the block have the same timestamp.

5
  • Great answer! Brownie points; will this work sending multiple transactions to yourself (same Bitcoin address)? Commented Aug 17, 2018 at 19:30
  • Yes, it happens with change transactions and dust sweeping.
    – JBaczuk
    Commented Aug 17, 2018 at 19:47
  • You're the best. Commented Aug 17, 2018 at 20:09
  • fyi: Those transactions do not necessarly need to be in the order in the blockchain as the order you created them! It is possible that there is a TX from A->B and a TX B->C and in the bitcoin blockchain the transactions are stored in the order B->C, A->B (within the same block). Commented Aug 19, 2018 at 18:15
  • What about this: "the protocol enforces that the transactions will be written out in the block in the correct order." bitcoin.stackexchange.com/questions/23035/…
    – JBaczuk
    Commented Aug 19, 2018 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.