specborn documentation contents ↓

JSON-RPC #

specborn run serves a minimal JSON-RPC on 127.0.0.1:8545 by default, for users and tools on the same machine: reading chain data, logs and Merkle proofs, eth_call, simulation and fee estimation, submitting transactions to the peer-to-peer network, and the transaction pool's contents. It is not an Engine API (there is none: the execution and consensus layers are one process). The consensus side has its own, separate read-only Beacon API.

Flag of specborn runEffect
(none)JSON-RPC on 127.0.0.1:8545
--rpc-port Non 127.0.0.1:N instead; the address cannot be changed
--no-rpcno JSON-RPC server
--rpc-allow-unprotected-txsaccept pre-EIP-155 legacy transactions in eth_sendRawTransaction
--rpc-default-tip WEIthe priority fee an empty block contributes to the gas-price oracle (default 1,000,000 wei)
--no-poolno transaction pool behind eth_sendRawTransaction (below)

At start the node prints rpc: JSON-RPC on 127.0.0.1:8545 and a line describing the restored history. If the port is taken, the node does not start (exit 1). The checkpoint-sync command has no JSON-RPC.

Methods #

The server's method tables (Specborn/Node/Rpc/Api.lean and Specborn/Node/Rpc/MoreTable.lean) have 43 methods:

GroupMethods
chaineth_chainId, eth_blockNumber, net_version, net_listening, web3_clientVersion
nodeeth_syncing (false, or the starting, current and highest execution block while the node catches up), net_peerCount (consensus connections, including dials in progress, plus active eth sessions), eth_capabilities (head, and per resource the oldest block served and the retention window)
blocks and headerseth_getBlockByNumber, eth_getBlockByHash, eth_getHeaderByNumber, eth_getHeaderByHash, eth_getBlockTransactionCountByNumber, eth_getBlockTransactionCountByHash, eth_getBlockReceipts
transactionseth_getTransactionByHash, eth_getTransactionByBlockHashAndIndex, eth_getTransactionByBlockNumberAndIndex, eth_getTransactionReceipt, eth_sendRawTransaction
logseth_getLogs
stateeth_getBalance, eth_getTransactionCount, eth_getCode, eth_getStorageAt, eth_getStorageValues, eth_getProof (EIP-1186 Merkle proofs)
executioneth_call, eth_estimateGas, eth_createAccessList, eth_simulateV1
feeseth_gasPrice, eth_maxPriorityFeePerGas, eth_feeHistory, eth_blobBaseFee, eth_baseFee
raw datadebug_getRawHeader, debug_getRawBlock, debug_getRawTransaction, debug_getRawReceipts
pooltxpool_status (the numbers of pending and queued transactions; 0/0 without a pool), txpool_content, txpool_contentFrom (the pooled transactions by sender and nonce)

Not implemented: filters (eth_newFilter, eth_getFilterChanges, …) and subscriptions, every other debug_* method (tracing included), and every admin_*, engine_* and testing_* method. eth_config (EIP-7910) is not served: the execution layer uses the specification's deposit contract address on every network and does not read the one a network's genesis.json names, so the answer could describe a configuration the network does not have (open item OPEN-rpcmore-config, docs/pieces/rpcmore.md).

Bounds of the newer methods (errors, never a shortened answer; fixed in the code, docs/pieces/rpcmore.md):

MethodBound
eth_getLogsat most 8,192 blocks per range; at most 10,000 logs and 16 MiB of log data per answer (-32005); at most 1,000 addresses, 4 topic positions and 1,000 topics per position
eth_getProofat most 1,024 storage keys
eth_getStorageValuesat most 1,024 slots and 1,024 addresses
eth_createAccessListat most 8 executions, charged to the request's 500 M gas budget
txpool_contentat most 16 MiB of transactions per answer
eth_simulateV1at most 256 blocks (gap blocks included) and 1,000 calls (-38026); the calls share one pool of at most 50 M gas; code overrides of at most 64 KiB; at most 10 MiB of serialized blocks per answer (-38026 response too large)

eth_simulateV1 (piece rpcsim, docs/pieces/rpcsim.md) simulates blocks on the post-state of a base block and never writes the store, the pool or the outbox. Every simulated block must follow the Amsterdam rules; earlier rules are refused (-32000), so on a chain that is not yet Amsterdam the method answers only with that error (open item OPEN-rpcsim-1). Also refused (-32602): moving a precompile or overriding a precompile's address when a call follows, a blobBaseFee override other than the block's own when the block has calls, and code overrides at the system-contract addresses. One known difference is not refused: with validation: false the BLOBBASEFEE opcode returns the price at the block's excess blob gas, not 0 (OPEN-rpcsim-5).

There is no general per-response size cap: within these bounds one answer can be about 36 to 38 MB (eth_getLogs at its data bound, a full txpool_content); eth_getProof is realistically about 5 MB, at most about 70 MB in theory. eth_getLogs over the full 8,192-block range scans every log of the range: about 2.7 s for 4 million logs with 1,000 addresses and topics per position (measured), answered -32002 request timed out after 5 s if longer. eth_syncing reports syncing from the server's start until the node follows its peers' head and the server's store has reached the in-process engine's head; then false. Its highestBlock is the highest execution block the node has received, not an estimate of the network's head, and it does not compare with the wall clock (Specborn/Node/Sync/RpcLink.lean, publishStatus).

Differences from go-ethereum, by design (docs/pieces/rpc.md §3.1):

Evidence (TESTED): at the merge gate of rpcsim and rpcmore (STATUS.md, 2026-11-23, gate21), 224 execution-apis conformance files of the served methods exact, 0 failed, and 15 of 15 schema-only files valid; 10 further eth_simulateV1 files are refused with their recorded error code for the reasons listed in docs/pieces/rpcsim.md §5 (fixed precompile set, blob fee override, a pre-Cancun base block), and 23 files use methods that are not implemented (99 exact and 9 schema-only before the two pieces, docs/pieces/rpc.md §0); every result valid against the execution-apis schema; for the methods of docs/pieces/rpc.md, a live differential run against geth on a Kurtosis devnet with 4,213 requests, 4,185 responses equal and the rest explained (error text of 24, and 4 by design). The newer methods have not been compared with geth live.

Binding and access control #

SettingDefault
listen address127.0.0.1:8545 (localhost only)
accepted Host headerlocalhost, [::1], or a literal 127.x.y.z address; anything else gets 403 (protection against DNS rebinding; PROVED that no DNS name passes, docs/pieces/rpc.md §4)
CORSnone: no Access-Control-Allow-* header is ever sent, so a web page on another origin cannot read responses
authenticationnone (local programs are trusted, as with any localhost RPC)
connections16
request body5 MiB; batch of at most 100 requests
rate200 requests per second per connection
execution50 M gas per eth_call / eth_estimateGas, 500 M gas per request body, 5 s deadline (-32002 request timed out), at most 2 executing requests at once

These are fixed in the code (Specborn/Node/Rpc/Server.lean, docs/pieces/rpc.md §3.2); only the port can be set from the command line.

Do not expose the RPC to other machines. If you need remote access later, put an authenticating proxy or an SSH tunnel in front of it.

Transactions and the pool #

By default (--no-pool not given) the node keeps a transaction pool on every eth session (Networking). eth_sendRawTransaction puts a transaction into it and answers with the pool's verdict; transactions received from execution peers (eth/69 to eth/71) go through the same checks. A transaction is validated against the head state with the node's own execution rules, announced to the eth peers (NewPooledTransactionHashes) and served on request (PooledTransactions); a pooled transaction is found by eth_getTransactionByHash (without a block position). After every head change the pool is re-validated.

Pool limits (client policy, Specborn/EL/Pool/Types.lean, not settable from the command line): 8,192 transactions and 256 MiB in all, 256 blob transactions, 64 per sender, nonces at most 64 above the account's, 1,024 queued transactions (behind a nonce gap; evicted first) and 16 per sender, 128 KiB per transaction (without blob sidecar), a replacement must raise both fees by 10% (100% for blob transactions), and at most one pooled transaction for an account with code (an EIP-7702 delegation). In a Transactions message, a typed entry whose encoding exceeds 128 KiB, or a legacy one whose data field does, is dropped before it is decoded or hashed, and blob transactions are dropped (they arrive only by announcement and fetch, with their sidecar); a legacy entry that passes this first test is still held to the 128 KiB limit on its full encoding. Evidence: docs/pieces/mempool.md (suite mempool 62,643 checks, 0 failures, 411 skipped in the piece's last scoped gate, §9.12; admission refines the reference specification's transaction checks, PROVED).

How much pool work one node-loop iteration does (client policy, Specborn/Node/Sync/PoolLink.lean and Specborn/Node/Wire/Node.lean, not settable): the work is cut into units of at most one transaction (an announcement into slices of 256 hashes). The pool's part of an iteration handles the messages from peers, then the transactions submitted over JSON-RPC, each in a loop of at most 512 units; after its first unit, a loop starts no unit once 50 ms have passed since the start of the pool part (head re-validation included). The rest is carried to the next iteration. With --validator-keys, the pool's part is skipped in an iteration while a validator duty is due within 600 ms (its work stays carried; counted in the status line's duty_deferred_events_pool=). Carried work is kept in one queue per peer, served in turn, and each peer's messages are kept only up to its share (at most 256, and at most 4,096 divided by the number of active sessions plus one); beyond it they are dropped and counted. So one peer's backlog delays and drops only its own messages. The unit structure is PROVED (Proofs/EL/Pool/Drain.lean); the time limit is not a theorem. Still open (O-mempool-15, narrowed): because each loop's first unit starts whatever the time, an iteration can overrun the 50 ms by one received-message unit plus one JSON-RPC unit, and the largest units measured were one 6-blob transaction's admission (557 to 710 ms) and one SetCode transaction with 670 authorizations (393 to 497 ms); the re-validation at a head change is not cut into units (33 to 50 ms at 8,192 transactions). In the piece's last live run, with geth and reth peers, the longest pool part of an iteration was 165 ms (docs/pieces/mempool.md §6.24).

With --no-pool, transactions submitted over JSON-RPC are still validated, announced and served on the eth sessions, but nothing received from peers is kept. The node builds no blocks: the pool is for propagation.

Privacy #

Known limits #