Indexer: Validators (v1)
getValidatorsFetch validator performance metrics such as NFT delegation APY, block probability, and offline percentage to compare validators and make informed Stargate NFT delegation decisions.
Instructions
Retrieve validator statistics via /api/v1/validators for Stargate NFT delegation decisions and validator performance. IMPORTANT: Look at all no status filter when getting validators when getting nft yields, when getting current validator not nft yields look at status=ACTIVE
KEY METRICS:
nftYieldsIfDelegatedNextCycle: Projected APY (%) for each Stargate NFT level in the next cycle if delegated to this validator (use this for delegation decisions)
nftYields: Current-cycle APY (%) for each Stargate NFT level already delegated to this validator
blockProbability: Validator's chance of producing blocks (higher = more rewards)
percentageOffline: Validator uptime reliability (lower = better)
delegatorTvl: Total USD value delegated by Stargate NFTs (higher = more competition)
FILTERS:
validatorId: Filter by specific validator address
endorser: Filter by endorser address
status: NONE, QUEUED, ACTIVE, EXITED, EXITING - only filter by ACTIVE for currently operating validators and all when getting nft yields
SORTING (sortBy parameter):
For NFT delegation: Use 'nft:' (e.g., 'nft:Dawn', 'nft:Thunder') to sort by APY IMPORTANT: When sorting by NFT yield, filter by status=ACTIVE or include QUEUED validators
Other options: validatorTvl, totalTvl, blockProbability, delegatorTvl
PAGINATION: Supports page, size, cursor, and direction (ASC/DESC)
VALIDATOR RECOMMENDATION GUIDELINES:
Primary metric: nftYieldsIfDelegatedNextCycle[level] - this is APY percentage, NOT absolute VTHO
Sort by the user's NFT level (e.g., sortBy='nft:Dawn' for Dawn NFTs)
Filter to status=ACTIVE for currently operating validators
Consider percentageOffline as secondary factor (reject if >30%)
Present top 3-5 options with APY clearly labeled as percentage
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based results page number (0 is the first page) | |
| size | No | Results per page (1..150); API default is typically 20 | |
| cursor | No | Opaque cursor for fetching the next page when provided by the API | |
| sortBy | No | Sort field for the results | |
| status | No | Filter by validator status | |
| endorser | No | Filter by endorser address | |
| direction | No | Sort direction for time-based queries; defaults to 'DESC' (newest first) | |
| validatorId | No | Filter by validator ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| network | Yes |