Go to app

How NEAR Protocol's Sharding Works

Published 11/8/2026, 4:17:03 PM

NEAR scales through a sharded proof-of-stake design called Nightshade, where the network is split into parallel shards that each process a subset of transactions, so no single node must process or store everything. The core innovation is that shards do not produce separate chains — they produce chunks that are bundled into a single unified block, so users see one chain while execution happens in parallel. The design was authored by NEAR co-founders Alex Skidanov and Illia Polosukhin in July 2019 (Nightshade paper).

Core mechanism: blocks are collections of chunks

Under Nightshade, each shard produces a chunk at each block interval, and a NEAR block is the collection of chunks from all shards:

"Each Shard produces a chunk of a block at a given interval. A Block in NEAR Blockchain is a collection of the block chunks from all shards." — NEAR Data Flow docs

This "single monolithic state abstraction" hides the sharded nature from end users — they transact against one unified chain, not shard-specific chains (SPICE intro, Near One).

Two validator roles

Nightshade splits consensus work between block producers (who assemble the block from shard chunks) and chunk validators (who validate chunks for specific shards). Chunk validators carry lower hardware requirements than full validators — "different participants can take on different slices of the work without every participant having to carry the full state burden" (Cube Exchange). This specialization grew over time: chunk validators were expanded from 300 to 500 by Q3 2025 (Messari Q3 2025).

Cross-shard communication via receipts

Transactions between shards are converted into non-blocking receipts. Two mechanisms manage cross-shard traffic:

  • Bandwidth scheduler (NEP-584) decides how many bytes of receipts a shard may send to each other shard per block (NEP-584)
  • Congestion control (NEP-539) limits how much a shard accepts when its delayed-receipt queue is full (NEP-539)

Stateless validation (Nightshade 2.0 — live Aug 22, 2024)

The major upgrade removed the requirement that validators hold shard state locally (NEAR blog — Nightshade 2.0 launch; also confirmed by CoinDesk and The Block). Instead of fraud proofs, NEAR uses stateless validation (NEP-509): a randomly sampled subset of validators validates each chunk, with state provided alongside chunks rather than stored locally (NEP-509). This is what makes adding shards cheap — validators no longer need to track every shard.

Resharding: from manual to dynamic

  • Resharding v2 (NEP-508): one shard splits into two within a single epoch at a pre-determined boundary (NEP-508)
  • Dynamic resharding (NEP-639): automatic splitting of shards based on state size, without requiring a protocol upgrade (NEP-639). It launched on mainnet July 20, 2026 as part of network upgrade 2.13 (PRNewswire)

Shard history and current state

MilestoneDateDetail
Mainnet launchOct 20201 shard ("Simple Nightshade")
Simple Nightshade shardingNov 15, 2021First step to full sharding (NEAR blog)
4 shards2022—
Nightshade 2.0 (stateless validation)Aug 22, 20246 shards, plan for hundreds (NEAR blog)
8 shardsearly 2025Single-block resharding (Messari Q1 2025)
9 shardsQ3 2025+12.5% throughput (Messari Q3 2025)
1M TPS benchmarkDec 11, 202570 shards on commodity hardware (Near One)
Dynamic resharding liveJuly 20, 2026Automatic shard splitting at epoch boundaries (PRNewswire)
~9–10 shardsAug–Sep 2026Nine shards that split/merge on demand (LeveX); protocol v86 with ten shard IDs (Coinyq)

Note the 1M TPS figure is a test-run benchmark, not sustained mainnet throughput — it was achieved on 70 shards in a controlled setting on commodity hardware (Near One); mainnet currently runs ~9–10 shards.

What's next: SPICE

The announced next upgrade, SPICE (Separation of Consensus and Execution), argues that inter-shard communication doesn't need explicit consensus agreement at every step, since execution scheduling can be derived from blockchain determinism — i.e., sharding can move further out of the consensus critical path (NEAR blog, Near One SPICE Part 1).

Conclusion: NEAR's sharding works by teeing many parallel shards into one unified chain via chunk-bundled blocks, offloading per-shard validation to state-less sampled validators, and coordinating across shards through receipt scheduling — with dynamic resharding now automatically adjusting shard count. What remains open is whether mainnet shard count and sustained throughput (vs. the 1M TPS benchmark) will scale into the hundreds without hitting hardware and cross-shard communication limits.