Skip to content

Validators Response Limit #15

@kamilstakingrewards

Description

@kamilstakingrewards

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions