Introducing a new way to review your PRs.

Read the announcement

near / nearcore

Reference client for NEAR Protocol

View on GitHub

20 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

nearcore knowledge base

nearcore is NEAR Protocol's Rust node implementation. Its major subsystems are chain processing, client services, runtime execution, persistent state, peer networking, protocol configuration, and operations tooling.

Critical durable data is managed through the store and trie layers: chain and chunk metadata, flat state, shard state, and archival data. The client coordinates these layers with synchronization, networking, RPC, and runtime services.

flowchart TD
  Neard[neard executable] --> Client[Client services]
  Client --> Chain[Chain processing]
  Client --> Runtime[Runtime execution]
  Client --> Network[P2P networking]
  Client --> RPC[RPC and indexing]
  Client --> Sync[State synchronization]
  Chain --> Store[Persistent store]
  Runtime --> Store
  Sync --> Store
  Store --> Trie[Trie and flat state]
  Store --> Archive[Cloud archival storage]
  Chain --> Epoch[Epoch manager]
  Epoch --> Protocol[Protocol configuration]
  Network --> Peers[Peer connections]
  Client --> Observability[Operations and telemetry]

Glossary

  • Flat state — a storage representation that accelerates state access alongside trie-backed state.
  • State part — a partitioned unit of shard state transferred and reconstructed during state synchronization.
  • Epoch manager — the component that supplies epoch, validator, and shard-layout metadata.
  • Chunk — a shard-specific portion of block execution and chain data.
  • Rosetta — the API integration exposing NEAR chain data through Rosetta-compatible services.

Routing table