Base
Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.