big-dipper-2.0-cosmos
big-dipper-2.0-cosmos copied to clipboard
Validator list GraphQL query issue
Our chain has 5000+ validators, but most of them are jailed. We only have 20+ active validators. When querying validator list, it only fetches 100 validators and most of them are jailed validators. How can I fix this issue.
query Validators {
stakingPool: staking_pool(limit: 1, order_by: {height: desc}) {
bondedTokens: bonded_tokens
}
validator {
validatorStatuses: validator_statuses(order_by: {height: desc}, limit: 1) {
status
jailed
height
}
validatorSigningInfos: validator_signing_infos(
order_by: {height: desc}
limit: 1
) {
missedBlocksCounter: missed_blocks_counter
tombstoned
}
validatorInfo: validator_info {
operatorAddress: operator_address
selfDelegateAddress: self_delegate_address
}
validatorVotingPowers: validator_voting_powers(
offset: 0
limit: 1
order_by: {height: desc}
) {
votingPower: voting_power
}
validatorCommissions: validator_commissions(order_by: {height: desc}, limit: 1) {
commission
}
validatorSigningInfos: validator_signing_infos(
order_by: {height: desc}
limit: 1
) {
missedBlocksCounter: missed_blocks_counter
}
}
slashingParams: slashing_params(order_by: {height: desc}, limit: 1) {
params
}
}
Above is the query and even if I set limit to 100000 for validator, it still truncate most of them, just 100 items. It is the issue related to Hasura? Thanks.