You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: