Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
eth_syncing reports whether a Base node is still catching up to the chain head or has fully synced. Base is Coinbase's OP Stack optimistic rollup that settles to Ethereum and meters gas in ETH, with the sequencer producing blocks about every two seconds — so a node that is behind has to replay a lot of recent history before it can serve accurate state. When the node is fully synced this call returns false; while it is still importing blocks it returns an object whose startingBlock, currentBlock, and highestBlock fields (all hex) let you watch progress toward the tip. Send the request to https://base.therpc.io/YOUR_API_KEY against chain ID 8453 (hex 0x2105).
currentBlock against highestBlock as the node climbs toward the tip.eth_syncing returns false.currentBlock over time; on Base's ~2-second cadence a healthy node should advance several blocks between samples, and a flat value flags a stall.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| boolean | object | false when the node is fully synced. When syncing, returns an object with at minimum: startingBlock (hex), currentBlock (hex), highestBlock (hex). Additional fields vary by client (e.g. Geth includes snap-sync progress counters; Erigon includes syncStage/syncProgress). |
Try it live in the Base playground.
| Code | Message | Cause |
|---|---|---|
-32603 | Internal error | Node cannot determine sync state (e.g. no peers connected). |
false during certain sync phases even when the node is not truly at the head (for example Beam Sync on Nethermind). Do not treat false as an absolute guarantee — cross-check eth_blockNumber against the public Base height on basescan.org.startingBlock/currentBlock/highestBlock should handle missing keys gracefully.