Objects
Validators
Learn about the Validator object type, its fields, and how to query validator data.
Validators
Validators are nodes in the network responsible for validating transactions and maintaining the blockchain's integrity. These entities stake network tokens as collateral and use computing resources to validate transactions and achieve consensus on new blocks. In return, validators receive compensation through newly minted coins or transaction fees.
Validator Object Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
address | String | Validator address |
isActive | Boolean | Active status |
isPrivate | Boolean | Private status |
isDynamic | Boolean | Dynamic status |
isOpensource | Boolean | Open source status |
activeSince | Date | When validator became active |
metricsUpdatedAt | Date | Last metrics update time |
rewardOptions | Array | Associated reward options |
status | Status! | Validator status |
metrics | Array | Validator metrics |
chain | ListItem | Chain information |
Sample Queries
Basic Validator Query
{
validators(order: { address: asc }, limit: 5) {
id
address
isActive
metrics(limit: 20) {
metricKey
defaultValue
}
}
}Search Validators
{
validators(where: {search: "00000"}, order: { address: asc }, limit: 5) {
id
address
isActive
metrics(limit: 5) {
metricKey
defaultValue
}
}
}Validators can be filtered and ordered using the same patterns as other objects. Use where for filtering and order for sorting.
Related Types
- Assets — Staking assets
- Providers — Staking providers
- Reward Options — Staking mechanisms
- Metrics — Metric data points