1

I was exploring transactions inside of a blockchain using this site, and inside of a transaction I noticed there is attribute called Included in Block and its description is: block this transaction is mined and confirmed in.
(I don't know does it matter but, transaction I was looking is this one)


I was wondering, how is this attribute populated? The reason of my question is that I was exploring how can you, by looking at transaction inside of your UTXO, check in which block transaction was included (and then I found this attribute). Is this the right way?
Thank you!

2

I was wondering, how is this attribute populated?

The site uses an index that simply remembers this information. If a block B is seen that contains a transaction T, an entry is stored in the database that signifies "transaction T is in block B".

by looking at transaction inside of your UTXO, check in which block transaction was included (and then I found this attribute)

The UTXO set does not contain this information, nor can it be efficiently requested from arbitrary nodes in the network.

| improve this answer | |
  • Thank you a lot Pieter! – ddavi031 Jul 13 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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