3
I'm trying to do research on the age of transaction outputs at the time they are spent. I'm running bitcoind on my computer. I have transactions indexed with txindex=1. I want to take a given TXIN and get the block of the TXOUT it spends so I can calculate the age.
How do I get the block a given transaction is included in?
as far as i know bitcoind only stores information about addresses in your wallet. it does not create an index for every single address. there are blockchain explorers that do that however, such as Insight by BitPay. – Luca Matteis – 2015-06-10T19:35:06.563
If you set txindex=1 in the conf then it will index all transactions. – user3601780 – 2015-06-11T20:24:27.430