yeah that can be a real pain in the ass fo sho
just so I have this clear, it's going to be a hyperstake wallet with the explorer built in?
Yes sir. A real explorer, not a crawler like most other coins have. It is all rpc based at the moment of course, but its more about the code behind it and the DB, not about making it flashy.
Basically how my explorer code functions:- scan block for all tx's held by the block
- scan each transaction id and create a "transaction summary" for each address in that txid. each txsum has a blockfrom, deposit, withdraw, minted, and mined variables that are filled in.
- insert each txsum object into an array that is tracked per address
- keep a record of every address seen and update its balance, minted total, mined total each time it is seen, store this in Richlist db
These basic things allow for us to query any address, which will bring up the vector of txsums for that address. With this vector you can quickly find a balance by adding all the withdraw and deposits in each txsum, or you can print out a list of transaction id's for that address.
We can also bring up our richlist that is a simple group of every address with its current balance, amount mined, and amount minted.
So my code is built from the ground up, it doesn't even use the txindex=1 functionality. And it provides full address querying without having to dig through the chain each time you query that address. Of course I would love to add even more functionality over time too.
This is made for HYP, but I would like to make it neat on github so other coins can easily cherry pick it if they want. Can you imagine a crypto world where you can get all the info you need from your wallet? No checking websites. If you think your richlist/balances are wrong just hit reindex, or ask a friend what their wallet says. It seems like this is how wallet clients should have been all along.