6
3
I haven't been able to find information on how to efficiently index UTXOs. Can you explain or point me to some resources?
Update: Btw, I understand completely that the notion of address balance is awkward at best, and that it can never really be known with 100% confidence, especially as P2SH transactions gain popularity.
1Index for what type of querying? – Pieter Wuille – 2014-10-09T08:24:36.223
1haven't tried anything as I'm not an expert on indices, but have browsed a ton of bitcointalk and couldn't find anything.
@PieterWuille to query balances for addresses. – stanm87 – 2014-10-09T11:38:59.653
So after doing more digging, here's is what I'm thinking: read the chainstate db from bitcoin core, either directly or via rpc, and then flip the index. I was thinking of putting it in a redis hash, with addresses as keys and transactions as values. This way I can use HSCAN to iterate over the transactions that point to an address and get its balance. The reason I want to use Redis is because this datastructure will be updated quite often, and having everything in RAM is good for that use case. What do you think? – stanm87 – 2014-10-13T15:12:57.660
1
Does this answer your question? http://bitcoin.stackexchange.com/questions/5518/how-do-i-access-information-on-blockexplorer-com-or-blockchain-info-without-issu
– Nick ODell – 2014-10-22T17:57:02.323@NickODell not at all – stanm87 – 2014-10-22T21:09:37.563