Ethereum Sepolia Beacon Chain API Guide

Call the Sepolia Beacon Chain REST API: finality checkpoints, validator and withdrawal queries, curl, JavaScript and Python examples, and when to use Hoodi.

Ethereum Sepolia Beacon Chain API Guide

The Ethereum Sepolia Beacon Chain API gives you consensus layer access on the Sepolia testnet. It is a REST API, not a JSON-RPC interface. You use it to read validators, slots, finality checkpoints and withdrawal data on Sepolia, next to the Sepolia execution layer, before your code reads the same data on mainnet.

This guide covers what the Sepolia Beacon API is for, how to authenticate, which endpoints matter for testnet workflows, and practical examples in curl and JavaScript. For endpoint details and chain specs, see the Ethereum Sepolia Beacon Chain endpoint page.


What the Sepolia Beacon API Is For

Sepolia runs a full Ethereum node stack: an execution layer and a consensus layer. The execution layer handles smart contracts and transactions, accessed via JSON-RPC. The consensus layer manages validator coordination, proof-of-stake, and finality. That is what the Beacon API exposes.

You need the Sepolia Beacon API for:

  • Reading withdrawal data. EIP-4895 withdrawals are processed at the consensus layer. The Beacon API exposes withdrawal credentials, the withdrawals in each block and validator exit states, so code that reads them can be tested on Sepolia.
  • Validator monitoring. Dashboards, explorers and alerting that read validator status, balances and duties can be built against Sepolia’s live validator set.
  • Bridge finality testing. Bridges using Ethereum finality checkpoints as a safety signal need to query the Beacon API. Testing that logic on Sepolia before mainnet is the right workflow.
  • Staking protocols, on the contract side. Liquid staking contracts can be deployed on the Sepolia execution layer and read consensus data from the Sepolia Beacon API. The validators behind them belong on Hoodi (see below).

Sepolia’s validator set is permissioned: you cannot activate validators of your own there. To rehearse the full deposit, activation, exit and withdrawal cycle on validators you control, use the Hoodi Beacon Chain, Ethereum’s testnet for staking. The API and the code in this guide work the same on Hoodi; only the chain slug changes.

For dApp and smart contract testing without a consensus layer requirement, use the Ethereum Sepolia execution endpoint. The Beacon API adds the consensus layer on top.


Authentication

The Sepolia Beacon API authenticates the same way as the execution layer endpoint: the API key is part of the URL path.

Correct: https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon with the REST path appended Wrong: sending the key as an Authorization: Bearer header or a ?auth= query parameter (returns 401 on Beacon endpoints)

Both use the same API key from your BoltRPC account. Only the chain slug differs between execution and consensus endpoints.


Key Beacon API Endpoints

The base URL for the Sepolia Beacon API is:

https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon

All requests are HTTP GET unless noted.

Node sync status

GET /eth/v1/node/syncing

Returns the current head slot and sync status. Use this to verify your connection before running queries.

Finality checkpoints

GET /eth/v1/beacon/states/{state_id}/finality_checkpoints

Returns the latest justified and finalized checkpoints. Use finalized as the state identifier for settled data. Use head only when you explicitly need the latest unconfirmed slot.

Validator status

GET /eth/v1/beacon/states/head/validators/{validator_index}

Returns status, balance and withdrawal credentials for a specific validator. Status values include pending_queued, active_ongoing, active_exiting, exited_unslashed.

Block headers

GET /eth/v1/beacon/headers/head

Returns the latest beacon block header with slot number, proposer index and parent root.

Full beacon block

GET /eth/v2/beacon/blocks/{block_id}

Returns a full beacon block including the execution payload. Use v2 (not v1) for post-Merge blocks.

Withdrawal credentials check

GET /eth/v1/beacon/states/head/validators?status=active_ongoing

Returns active validators. Filter on the withdrawal credentials prefix to find validators still on 0x00 (BLS) credentials; 0x01 and 0x02 (compounding, since Pectra) can both receive withdrawals.


Connecting Step by Step

curl

Check sync status:

curl "https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon/eth/v1/node/syncing"

Get finality checkpoints:

curl "https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon/eth/v1/beacon/states/finalized/finality_checkpoints"

Query a specific validator:

curl "https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon/eth/v1/beacon/states/head/validators/1234"

Get the latest block header:

curl "https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon/eth/v1/beacon/headers/head"

JavaScript (fetch)

const KEY = "YOUR_API_KEY";
const BASE = `https://endpoints.boltrpc.io/rpc/${KEY}/ethereum-sepolia-beacon`;

async function beaconGet(path) {
  const res = await fetch(`${BASE}${path}`);
  if (!res.ok) throw new Error(`Beacon API error: ${res.status}`);
  return res.json();
}

// Check sync status
const sync = await beaconGet("/eth/v1/node/syncing");
console.log("Head slot:", sync.data.head_slot);
console.log("Syncing:", sync.data.is_syncing);

// Get finality checkpoint
const checkpoints = await beaconGet(
  "/eth/v1/beacon/states/finalized/finality_checkpoints"
);
console.log("Finalized epoch:", checkpoints.data.finalized.epoch);

// Monitor validator status
const validator = await beaconGet(
  "/eth/v1/beacon/states/head/validators/1234"
);
console.log("Status:", validator.data.status);
console.log("Balance:", validator.data.balance, "Gwei");

Python (requests)

import requests

KEY = "YOUR_API_KEY"
BASE = f"https://endpoints.boltrpc.io/rpc/{KEY}/ethereum-sepolia-beacon"

def beacon_get(path):
    resp = requests.get(f"{BASE}{path}", timeout=10)
    resp.raise_for_status()
    return resp.json()

# Get current slot
header = beacon_get("/eth/v1/beacon/headers/head")
slot = header["data"]["header"]["message"]["slot"]
print(f"Current Sepolia slot: {slot}")

# Get finality checkpoint
checkpoints = beacon_get(
    "/eth/v1/beacon/states/finalized/finality_checkpoints"
)
finalized_epoch = checkpoints["data"]["finalized"]["epoch"]
print(f"Finalized epoch: {finalized_epoch}")

Reading Withdrawal Data on Sepolia

The Beacon API is how you read withdrawal credentials and follow a validator through exit and withdrawal. On Sepolia you can run this against any of Sepolia’s validators; to watch your own validators exit, run the same code against the Hoodi Beacon Chain.

Check withdrawal credentials for a validator:

const validator = await beaconGet(
  "/eth/v1/beacon/states/head/validators/1234"
);

const credentials = validator.data.validator.withdrawal_credentials;
const prefix = credentials.slice(0, 4);
const credType = {
  "0x00": "0x00 (BLS, no withdrawals until changed)",
  "0x01": "0x01 (execution address)",
  "0x02": "0x02 (compounding, Pectra)",
}[prefix] ?? `${prefix} (unknown)`;
console.log("Withdrawal credential type:", credType);
// 0x01 and 0x02 credentials can receive withdrawals

Track validator exit progression:

// Poll this endpoint to monitor exit queue progress
async function trackValidatorStatus(validatorIndex) {
  const data = await beaconGet(
    `/eth/v1/beacon/states/head/validators/${validatorIndex}`
  );
  const status = data.data.status;
  const exitEpoch = data.data.validator.exit_epoch;
  const withdrawableEpoch = data.data.validator.withdrawable_epoch;

  console.log(`Status: ${status}`);
  console.log(`Exit epoch: ${exitEpoch}`);
  console.log(`Withdrawable epoch: ${withdrawableEpoch}`);
}

Common Issues

401 on every request The key is missing from the URL path. Beacon endpoints authenticate with the API key embedded in the URL, the same pattern as the execution layer. Sending the key as an Authorization: Bearer header or a ?auth= query parameter returns a 401.

Using head when you need settled data When reading withdrawal data, querying head state can return data from a slot that has not finalized. For anything that requires confirmed state (withdrawal credential checks before processing a withdrawal), use finalized as the state identifier.

v1 block endpoint missing execution payload /eth/v1/beacon/blocks/{id} does not include the execution payload on post-Merge blocks. Switch to /eth/v2/beacon/blocks/{id} to get the full block including execution data.

A validator still shows pending_queued New validators wait in the activation queue after their deposit, so check the status field before assuming a validator is active. If you are testing deposits of your own, that queue is on Hoodi: Sepolia’s validator set is permissioned.


FAQ

What is the Sepolia Beacon Chain API URL? The BoltRPC endpoint is https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/ethereum-sepolia-beacon. The API key is part of the URL path, so no extra header or query parameter is needed.

Does the Sepolia Beacon API support WebSocket? Yes, for new slots. The Beacon API itself is REST, so the endpoint synthesizes a newHeads stream over WebSocket at wss://endpoints.boltrpc.io/ws/YOUR_API_KEY/ethereum-sepolia-beacon: one message per slot, subscribe-only. The Beacon API’s own event stream (GET /eth/v1/events) is also available as server-sent events. Fetch the data itself over the REST routes.

How is the Sepolia Beacon API different from the mainnet Beacon API? The API interface is identical. The difference is the data: Sepolia’s validator set is small and permissioned, and the chain has its own genesis and fork history. Finality takes about two epochs, as on mainnet. To test the validator lifecycle with validators of your own, use the Hoodi Beacon Chain.

What state identifier should I use in production testing? Use finalized for data you need to be settled. Use head only when you specifically need the latest slot regardless of finalization status.


Ready to test on the Sepolia Beacon Chain? Start your free 2-week trial at dashboard.boltrpc.io. Same API key as your Sepolia execution endpoint. No credit card required.

Questions we get about this.

Content is for informational purposes only and does not constitute financial, legal or technical advice. Code examples and configurations are provided as-is. Verify against official documentation and test in your own environment before deploying to production.

More from the blog.

All articles →
Ethereum

Glamsterdam Upgrade: What Changes for RPC Users

Glamsterdam brings ePBS and block-level access lists to Ethereum. What changes in JSON-RPC headers, logs and gas estimates, and where the fork stood 7 Nov 2026.

Nov 10, 2026 · 13 min read
RPC

Public RPC Endpoint Rate Limits, Measured

Free public RPC endpoints rarely publish limits. We measured six official ones on 7 Nov 2026: 429 shapes, batch caps, missing methods and when to use a key.

Nov 10, 2026 · 17 min read
Pricing

Alchemy Alternative: What Switching Really Costs

Switching from Alchemy pays off for standard JSON-RPC at volume. A worked 50M-call bill, what you give up and the migration steps.

Oct 24, 2026 · 18 min read