What problem does it solve?
Tracking the Ethereum consensus layer normally requires running a full node, which is resource-intensive. This Skill helps you initialize and manage a beacon chain light client in .NET that verifies sync committee BLS aggregate signatures to obtain trusted finalized and optimistic execution-layer headers without downloading every block.
Core Features & Use Cases
- Light Client Initialization: Bootstrap a light client from a weak subjectivity root using Nethereum.Beaconchain, Nethereum.Consensus.LightClient, and Herumi BLS verification, with preset configs for Mainnet, Sepolia, and Holesky.
- Update Lifecycle Management: Sync committee period catch-up via UpdateAsync, finalized header advancement via UpdateFinalityAsync, and near-head optimistic updates via UpdateOptimisticAsync.
- Trusted Header Provider: Expose ITrustedHeaderProvider with staleness detection, stale-header events, and historical block hash lookup for consumption by state proof verification.
- State Persistence: Implement ILightClientStore (e.g., file-based) to persist light client state across restarts and avoid re-bootstrapping.
- Use Case: Build a wallet or indexer that verifies account balances via eth_getProof against a trusted finalized header without operating a full Ethereum node.
Quick Start
Initialize an Ethereum mainnet light client connected to a public beacon API endpoint and print the latest finalized block number and state root.