APIs & Data Access
Seba offers robust API endpoints for developers and participants to query validator and protocol data.
Validator Stats Endpoint
Allows batch retrieval of performance data for multiple validator IDs via a comma-separated query parameter.
Example:
https://dp32uxbkno310.cloudfront.net/validator-stats/?validators=1062282,1062287,1062281
The properties that can be retrieved are the following:
export interface TrackedValidator {
id: number // Validator ID
attestationPoints: bigint // Number of attestation points accrued
rewardAddress: string // Validator withdrawal address
startEpoch: number // Epoch on which the graduation period started
lastProcessedEpoch: number, // Last processed epoch for this validator
graduationEligibilityEpoch: number, // Epoch on which this validator will become eligible for graduation
successfulProposals: number, // Total amount of succesful proposals since registration
failedProposals: number, // Total amount of failed proposals since registration
rewardsContributed: number, // Total amount of rewards contributed to Seba Pool
graduated: boolean // Wether the validator has graduated
effectiveBalance: number // Current effective balance
lastProposedValidGraduationBlockEpoch: number
/* Last epoch on which a graduation block was proposed for this validator (does not mean a graduation
will happen automatically because validator needs to run trough complete graduation period as prerequisite) */
}Block Retrieval Endpoint
Returns blocks associated with SebaPool participation, with support for pagination. Example:
The properties that can be retrieved are the following:
Last updated