Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_syncing reports whether an Avalanche C-Chain node is still catching up to the chain tip or has finished syncing. When the node is fully synced it returns false; while it is importing blocks it returns an object with startingBlock, currentBlock, and highestBlock so you can gauge how far behind it is. On the C-Chain — the EVM chain where AVAX pays for gas, secured by Snowman/Avalanche consensus — a node must be fully synced before its responses to balance, log, and call queries can be trusted. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) to confirm a node is current before you depend on its data.
currentBlock and highestBlock and surface it on a node-monitoring dashboard.false response so your service only begins serving requests once the node is fully synced.currentBlock over time — on the C-Chain, with its one-to-two-second block cadence, a currentBlock that barely advances signals a problem.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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 Avalanche playground.
| Código | Mensaje | Causa |
|---|---|---|
-32603 | Internal error | Node cannot determine sync state (e.g. no peers connected). |
false during certain sync phases even when they are not truly at the tip (for example Beam Sync on Nethermind). Do not treat false alone as a hard guarantee of full sync; cross-check eth_blockNumber against a known-good source.