-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
paginate eth logs #2366
paginate eth logs #2366
Conversation
Pull Request Test Coverage Report for Build eac09c44-7f16-48e9-ab6b-8a74f692b56a
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only a couple nitpick suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It is unclear from the docs is the pagination option is a part of
params
or pagination params are on the same level asparams
. If they are a part ofparams
, they should be included in the example - If I try to request this endpoint w/out pagination api endpoint responds to me with the number much less then 1000 logs entries. Try transfer method:
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
- It is unclear should use all 3 params of pagination or could use only one to paginate
which include parameters from the last log received from the previous request.
- this is a wrong statement because the previous call includes neitherblock_number
nortransaction_index
,log_index
. All of them have other names in the response of previous call
|
Yes, that is what the issue. 1 - 4 ✔️. One more thing in order to improve pagination UX: is it possible (if no performance concerns) to reorder response in that way, that all three pagination's params would be together? Therefore, the user can copy them in one click. Because currently, a user should copy every parameter to collect them all to make a request for the next page. |
@vbaranov it's possible. but do you think users will use pagination params not programmatically but by hand? |
Got your point. It makes sense, that programmatic control is prevalent for API. If API users will have this feature request, let's implement it. But for now, let's leave it as is. |
resolves #2353
Changelog