Validators Response Limit
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I've noticed that the https://undexer.hack.bg/v4/validators request returns a maximum of 100 validators per page/request, and then you have to use 'offset'. Is this really necessary for such a small data set? Namada will have a maximum of 250 validators, so presenting them all at once won't be resource-consuming. This way you won't have to hassle with pagination and offset. To be clear, I'm not talking about removing 'limit' and 'offset' because they can be useful in certain cases. I would just as standard, without any parameters, return all validators.
https://github.com/hackbg/undexer/blob/v4/swagger.yaml
/validators:
get:
summary: Get paginated list of validators, optionally filtered by state
parameters:
- {name: state, in: query, required: true, schema: {type: string, enum: [BelowThreshold, BelowCapacity, Jailed, Consensus, Inactive]}, description: "State of the validators"}
- {name: limit, in: query, required: false, schema: {type: integer}, description: "Number of validators to return"}
- {name: offset, in: query, required: false, schema: {type: integer}, description: "Offset for pagination"}
PS Creating this issue after a discord chat with Daniel, @danielmandragora
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.