You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to iterate over the UTXO set at each block and group the UTXOs by their age. I see the outputsUnspent method of the Blockchain class but this only allows iteration over the current UTXO set, and not historical snapshots of it.
I see in your paper (Fig. 13) that you calculate a timeseries of the percentage BTC unspent in the previous month -- how did you use BlockSci to extract this data? If you could share sample code that would be great.
I understand why caching the UTXO set at each block is not a default behavior of BlockSci (lots of space!). I would like to be able to turn on this behavior if possible.
The text was updated successfully, but these errors were encountered:
I thought recreating this graph was an interesting challenge so I took a swing at doing this myself. For queries such as these I've found the optimal approach is to reduce the problem into calculating the net change per block rather than defining it on the UTXO pool at each height. I've written some code previously that produces a rolling UTXO pool object that can advance blocks and changes, but I haven't found a compelling use case for this feature.
Some of it is a bit convoluted and I there certainly might be some minor bugs, but the linked gist shows a solution to this problem which runs in a little under 3 minutes on our r4.2xlarge EC2 instance.
Thanks! That looks great. It never occurred to me to do it that way. I'm currently trying to reproduce your script on my own ec2 instance. I'll let you know as soon as I do.
I work at Unchained Capital and I'm trying to recreate a copy of our UTXO Age Distribution.
I need to iterate over the UTXO set at each block and group the UTXOs by their age. I see the outputsUnspent method of the
Blockchain
class but this only allows iteration over the current UTXO set, and not historical snapshots of it.I see in your paper (Fig. 13) that you calculate a timeseries of the percentage BTC unspent in the previous month -- how did you use BlockSci to extract this data? If you could share sample code that would be great.
I understand why caching the UTXO set at each block is not a default behavior of BlockSci (lots of space!). I would like to be able to turn on this behavior if possible.
The text was updated successfully, but these errors were encountered: