How do I find out what block a transaction is in? 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?
./src/bitcoin-cli getrawtransaction 4ef653dc90aa25e1a0cc8a45f0484524010e5cc77b8159df6916466c07036482 1 (mind the 1 at the end which means you wish verbose output)


...
    "blockhash" : "000000000000000009e865d07f75341a5f3dc15f0e149055a241eedd552c3b88",
    "confirmations" : 1,
    "time" : 1433965052,
    "blocktime" : 1433965052
}