Please add an API endpoint for historical token balances
Closed this issue · 3 comments
Please make it possible to get historical token balances, e.g. "how many tzBTC did I have at Level N?".
This would really help accounting.
Thanks!
Thank you for the feature request! When we implement token balances in TzKT indexer, we will add such endpoint.
In the meantime you can use API endpoint for getting historical bigmap values, as token balance is just a value in a bigmap.
Thanks for the quick response! I've been using that historical bigmap value endpoint, but it's pretty confusing understanding how all the different contracts encode ledger balances (tzBTC is probably the worst I've seen so far 😩). It would be nice if there were one resource that maintained parsers for most of the tokens, like TzKT 🙂
Yeah, I agree, especially about tzBTC 😁. We will do that.