specborn documentation contents ↓

Beacon API #

specborn run --beacon-api serves a read-only subset of the standard beacon node API (ethereum/beacon-APIs) on 127.0.0.1. It is off by default. It exists so that you, and tools on the same machine (dashboards, scripts, explorers), can read what the node knows: its head, blocks, states, validators, committees and duties.

It is not a validator-client interface. specborn's validator client runs inside the node (Validators); there is no endpoint to submit attestations or blocks, and no other validator client can be attached to specborn.

The evidence for this page is the record of piece beaconapi (docs/pieces/beaconapi.md), merged into main on 2026-11-17 (STATUS.md).

Turning it on #

specborn run --datadir /var/lib/specborn --network ./net --el-genesis ./net/genesis.rlp \
  --bootnodes enr:-... --beacon-api                      # 127.0.0.1:5052
specborn run ... --beacon-api --beacon-api-port 15052   # another port

At start the node prints beacon api: listening on port 5052 (read-only). If the port is taken, the node does not start (exit 1). The address is always 127.0.0.1: only the port can be chosen, and there is no option to listen on another interface. The checkpoint-sync command has no beacon API.

curl -s http://127.0.0.1:5052/eth/v1/node/syncing
curl -s http://127.0.0.1:5052/eth/v1/beacon/headers/head
curl -s -H 'Accept: application/octet-stream' http://127.0.0.1:5052/eth/v2/beacon/blocks/head -o head.ssz

Endpoints #

Everything else answers 404. A known path with the wrong method answers 405.

MethodPathNotes
GET/eth/v1/node/versionspecborn/v<version>
GET/eth/v1/node/syncinghead slot, distance to the wall-clock slot; is_syncing is true while the node is not following the head
GET/eth/v1/node/health200 while following, 206 while syncing (or the syncing_status you ask for)
GET/eth/v1/node/peer_countconnected consensus peers (counts only)
GET/eth/v1/config/specthe entries of config.yaml, the mainnet preset of phase0 to Gloas and the DOMAIN_* constants (generated from the pinned consensus specifications), BLOB_SCHEDULE
GET/eth/v1/config/fork_schedule, /eth/v1/config/deposit_contractfrom config.yaml
GET/eth/v1/beacon/genesis
GET/eth/v1/beacon/headers (query slot, parent_root), /eth/v1/beacon/headers/{block_id}
GET/eth/v2/beacon/blocks/{block_id}JSON, or SSZ with Accept: application/octet-stream; Eth-Consensus-Version header
GET/eth/v1/beacon/blocks/{block_id}/root
GET/eth/v1/beacon/states/{state_id}/root, …/fork, …/finality_checkpoints
GET, POST/eth/v1/beacon/states/{state_id}/validators (query id, status; POST body ids, statuses), …/validators/{validator_id}
GET, POST/eth/v1/beacon/states/{state_id}/validator_balances
GET/eth/v1/beacon/states/{state_id}/committees (query epoch, index, slot)an epoch the state can compute committees for
GET/eth/v1/beacon/states/{state_id}/sync_committees (query epoch)the state's sync-committee period or the next
POST/eth/v1/validator/duties/attester/{epoch}validator indices in the body; computes, changes nothing
GET/eth/v1/validator/duties/proposer/{epoch}from the state's proposer_lookahead
POST/eth/v1/validator/duties/sync/{epoch}validator indices in the body; computes, changes nothing
GET/eth/v1/events?topics=head,head_v2,finalized_checkpointserver-sent events

Not implemented (404): every endpoint that produces or submits something (blocks, attestations, pools, subscriptions, registrations, preparations), debug, rewards, light client, blobs, PTC duties, node/identity and node/peers. The last two are left out on purpose: the API publishes no peer identities or addresses.

What it answers from #

The answers come from a snapshot the node publishes after each import or slot change: its fork-choice store (the blocks it holds and their post-states), the checkpoint states, its head, sync state and peer count.

Limits #

Fixed in the code (docs/pieces/beaconapi.md §5); none of them can be changed from the command line:

LimitValue
connections32 (when all are taken, the oldest connection that has been quiet for 1 s makes room); at most 16 of them event streams
requestheader section 8 KiB, body 8 MiB (more: 413), deadline 30 s, idle connection closed after 120 s
rate100 requests per second per connection (burst 200; more: 429)
idsat most 64 validator ids in a GET query (more: 414); at most 1,000,000 in a POST body (more: 400); repeated and unknown ids are reduced before any work
JSONnesting depth at most 8; at most 64 query parameters
state advanceat most 64 slots of process_slots for a slot id past the nearest stored state
outputat most 1 GiB of answers queued over all connections; an answer that would pass it is replaced by 503 ("response budget exhausted, retry later")
workers2 threads compute answers; the node's own work (import, fork choice, validator duties) never waits for the API
events4 MiB of backlog per stream; the view keeps the newest 64 events and 8,192 blocks

A duty query for every validator of a mainnet-sized chain (about 22 MB of JSON) is over the 8 MiB body limit and must be split.

The rate limit is per connection, and a new connection starts with a full burst; on loopback there is no address to limit by. A local program can therefore slow other API clients (by holding both workers or every connection place), or have their answers replaced by 503. It cannot change the node or slow its import. If you do not trust every local program, leave the API off.

Security and privacy #

Known deviations from other beacon nodes #

Recorded in the live differential runs against Lighthouse and Teku (docs/pieces/beaconapi.md §1, §6). Where those two clients answer differently from each other, specborn can match at most one of them:

Evidence #