The experimental/transaction_age.py script calculates the average age of the UTXO that are spent by a block. (Time since they were created by another transaction).
It would also be interesting to have scripts for tracing a transaction's outputs forward to a UTXO list, and be able to identify the oldest UTXO, index transactions by address, etc.
The UTXO set could be accessed via levelDB directly, or another library/client, but some of the other statistics would have to be collected by doing a full scan of the blockchain.
IF that is done, it would ideally only be done once.
The experimental/transaction_age.py script calculates the average age of the UTXO that are spent by a block. (Time since they were created by another transaction).
It would also be interesting to have scripts for tracing a transaction's outputs forward to a UTXO list, and be able to identify the oldest UTXO, index transactions by address, etc.
The UTXO set could be accessed via levelDB directly, or another library/client, but some of the other statistics would have to be collected by doing a full scan of the blockchain.
IF that is done, it would ideally only be done once.