/eth/v1/beacon/states/{state_id}/validators/{validator_id}

Get validators from state by id

Returns validator specified by state and id or public key along with status and balance.

Parameters

NameRequiredTypeDetail
state_idStringState identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", <hex encoded stateRoot with 0x prefix>.
validator_idStringEither hex encoded public key (any bytes48 with 0x prefix) or validator index

Result

Returns validator specified by state and id or public key along with status and balance.

Example

Request

curl <your-endpoint>/eth/v1/beacon/states/head/validators/1

Return

{
    "data": {
        "index": "1",
        "balance": "36214928554",
        "status": "active_ongoing",
        "validator": {
            "pubkey": "0xa1d1ad0714035353258038e964ae9675dc0252ee22cea896825c01458e1807bfad2f9969338798548d9858a571f7425c",
            "withdrawal_credentials": "0x0092c20062cee70389f1cb4fa566a2be5e2319ff43965db26dbaa3ce90b9df99",
            "effective_balance": "32000000000",
            "slashed": false,
            "activation_eligibility_epoch": "0",
            "activation_epoch": "0",
            "exit_epoch": "18446744073709551615",
            "withdrawable_epoch": "18446744073709551615"
        }
    },
    "execution_optimistic": false
}