Skip to main content

SyncStatus

Node synchronization status and progress from eth_syncing RPC method.

Overview

SyncStatus represents whether a node is syncing and its progress. Returns false when synced, or progress information when actively syncing.

Type Definition

Usage

Checking Sync Status

Progress Monitoring

RPC Integration

eth_syncing

Primary RPC method for sync status:

Sync Phases

Block Sync

Download and validate blocks:

State Sync

Download state trie (fast sync/snap sync):

Sync Strategies

Full Sync

Download and execute all blocks from genesis:

Fast Sync

Download blocks + recent state:

Snap Sync

Download state snapshots + recent blocks:

Wait for Sync

Block until node is synced:

Network Comparison

Different networks sync differently:

Common Patterns

Ready Check

Wait for node before operations:

Progress Bar

Visual sync progress:

API Reference

Constructors

  • SyncStatus.from(rpcResponse) - Create from eth_syncing response

Methods

  • SyncStatus.isSyncing(status) - Check if actively syncing
  • SyncStatus.getProgress(status) - Get percentage (0-100)

See Also