Skip to content
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

Endlessly query for all transactions bypassing 10k transactions window capped from upstream API #1

Open
haxpor opened this issue Apr 23, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@haxpor
Copy link
Owner

haxpor commented Apr 23, 2022

Such window capped of 10k transactions for one request could be possibly bypassed by setting latest startblock parameter to be endblock parameter of the previous exceeding cap window to the current iteration. Then repeat the process.

For reference, if we exceed the window cap, we will receive the following JSON string

{"status":"0","message":"Result window is too large, PageNo x Offset size must be less than or equal to 10000","result":null}

This would help solved the problem (for example) of https://github.com/haxpor/inoutflow-bsc to be able to analyze for target address with more than 10k transactions. Of course, with this we won't have to worry about the cap again.

@haxpor haxpor added the enhancement New feature or request label Apr 23, 2022
@haxpor haxpor self-assigned this Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant