v1
latestOpenAPI 3.1.02026-07-2612501.4 MBGetBeaconStatesValidatorsByStateIdAndValidatorId
Get validator from state by id. Returns validator specified by state and id or public key along with status and balance.
get/{apiKey}/eth/v1/beacon/states/{stateId}/validators/{validatorId}
Path parameters
apiKeystring required
<style>
.custom-style {
color: #048FF4;
}
</style>
For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.
stateIdstring required
State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <slot>, <hex encoded stateRoot with 0x prefix>.
validatorIdstring required
Either hex encoded public key (any bytes48 with 0x prefix) or validator index
Response
The validator
Example response
{
"data": {
"index": "1",
"balance": "1",
"status": "active_ongoing",
"validator": {
"pubkey": "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a",
"withdrawal_credentials": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
"effective_balance": "1",
"activation_eligibility_epoch": "1",
"activation_epoch": "1",
"exit_epoch": "1",
"withdrawable_epoch": "1"
}
}
}