I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get transaction destination address (like in some transaction explorers: link.

Raw transaction data looks like this and I don’t see any address fields anywhere.

How is it possible to calculate it? Is there a (preferably C/C++) program that already does that? Or are there any details on how to implement this?

Best regards and thanks for all answers in advance! 🙂