-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET /liquid/api/address/<address>/utxo
returns "Too many history entries" without any possiblity of paging
#282
Comments
I'm afraid that this accessing the UTXO set of "too popular" addresses is currently not possible. This might be revisited in the future. The only thing you could do today is get the transaction history, which doesn't have a "too popular" limit, and figure out the current UTXO set based on that. One way to do that is with two passes over the transaction list, one to populate a set of (If |
What is the limit at which the UTXOs set is becoming inaccessible? This particular address has 478865 transactions 😅. I don't think we'll be hitting this number anytime soon in our application but knowing where limit is would be nice! |
It's 500 by default, can be increased with |
This comment has been minimized.
This comment has been minimized.
Can't support paging? like: |
Not easily I'm afraid, the way the utxo database is currently structured is incompatible with (efficient) paging and doesn't work well when the per-address utxo set is huge. Making this work would require some re-designing, which might be done some day, but is not currently prioritized. |
Here is an address I just grabbed of the UI where this happens: https://blockstream.info/liquid/api/address/QLFdUboUPJnUzvsXKu83hUtrQ1DuxyggRg/utxo
Is there a way of how I can still access the UTXOs?
The text was updated successfully, but these errors were encountered: