Sharding
Sharding splits a blockchain's workload into parallel pieces called shards, so each node handles only part of the transactions or data and the network can grow without every node doing everything.
On a classic blockchain every full node processes every transaction, which keeps it secure but caps how much it can handle. Sharding breaks that work into parallel pieces, called shards, so that no single node has to carry the whole load.1 Two very different versions exist today. NEAR splits accounts and execution across shards. Ethereum dropped its plan for execution shard chains and now shards data for rollups instead.1 This entry explains both approaches, what blobs and danksharding are, and why the topic matters for fees and scaling.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 6 min
- Also called
- Shard, Blockchain sharding, Danksharding
- Updated
Sharding in plain words
Think of a supermarket with one checkout. Adding more checkouts lets more customers pay at once, as long as the tills stay in sync. Sharding does the same for a blockchain: it splits the network so that groups of validators handle only part of the data or activity in parallel.1
On NEAR, accounts are spread across several shards, each shard produces a chunk at regular intervals, and a block is the set of chunks from all shards.2 On Ethereum, the focus moved to cheap data space for layer 2 rollups: the 2024 Dencun upgrade added data blobs, the first step towards what Ethereum calls danksharding.3
How sharding works, step by step
Assign validators
Validators are assigned to shards, with the aim of keeping stake roughly balanced so no shard is much weaker than the others.6
Process in parallel
Each shard handles its own part at the same time as the others. On NEAR, every shard produces a chunk about once a second.2
Combine into one chain
Results are tied together so the network keeps a single history: a NEAR block is the collection of chunks from every shard.2
Handle cross-shard activity
When an action touches accounts on two shards, it is passed on as a receipt and completed on the receiving shard.2
Check availability without downloading everything
In Ethereum’s planned design, validators sample a few random pieces of each blob to confirm the full data was published, instead of downloading it all.3
Worked examples
Example 1 — How much data a blob carries
BlobsEIP-4844 defines each blob as 4,096 field elements of 32 bytes, with a target of 3 and a maximum of 6 blobs per block as originally specified.5
| Bytes per blob | 4,096 × 32 = 131,072 |
| That is | 128 KiB |
| Target per block | 3 × 131,072 = 393,216 bytes |
| Maximum per block | 6 × 131,072 = 786,432 bytes |
Each block gained a fixed, separately priced data lane for rollups. Later upgrades can raise the blob counts, which is how Ethereum expands rollup capacity step by step.
Example 2 — Why blobs cut layer 2 fees
Rollup feesA hypothetical rollup pays 0.002 ETH to publish one blob holding 1,000 compressed transactions. Blob data is pruned after about 18 days, so it costs less than permanent calldata.3
| Blob cost | 0.002 ETH |
| Transactions in the blob | 1,000 |
| Data cost per transaction | 0.002 ÷ 1,000 = 0.000002 ETH |
Spreading one blob across many transactions makes each user’s share of the data cost tiny, and those savings can be passed on to users as lower fees.3 The fee per blob still rises when demand for blob space is high.5
Example 3 — Splitting one shard into four
ThroughputNEAR’s “Simple Nightshade” layout split accounts into 4 shards.4 Assume, hypothetically, that one shard can process 1,000 transactions per second.
| Capacity of one shard | 1,000 tx/s |
| Number of shards | 4 |
| Nominal capacity | 4 × 1,000 = 4,000 tx/s |
Capacity grows with the number of shards only if activity spreads evenly. Transactions that cross shards need receipts, and a popular contract on one shard can still be a bottleneck.
Two approaches to sharding
Why sharding matters
Lower layer 2 fees
Cheaper blob data lets rollups charge less per transaction. See Layer 1 and Layer 2 and Proto-Danksharding (EIP-4844).3
Higher throughput on layer 1
Chains like NEAR Protocol (NEAR) process different accounts on different shards at the same time.2
Keeping node requirements modest
NEAR reshards to keep each shard small enough for a node with minimum hardware to keep up.4
Reading roadmap news
Upgrades such as PeerDAS, which shipped in Ethereum’s Fusaka upgrade, extend data availability for rollups and are steps on the sharding path.1
Advantages and disadvantages
Advantages
- Raises capacity without forcing every node to process everything.
- Data sharding sharply lowers the cost of publishing rollup data.
- Keeps hardware requirements within reach of more validators.
- Capacity can grow in steps, by adding shards or blobs.
Disadvantages
- Cross-shard transactions add complexity and can take longer.
- Each shard has fewer validators than the whole network, so assignment must be careful.
- Uneven demand can overload one shard while others sit idle.
- Full data sharding on Ethereum is still years away.
Going deeper
Read as far as you need. Each level builds on the one before it.
Sharding is a database idea
Beginner
Splitting a large database into smaller pieces that run in parallel is an old technique. Blockchains adapt it, with the added problem that shards must stay secure and agree on one shared history.
Why Ethereum dropped shard chains
Intermediate
Ethereum’s earlier plan was to run many shard chains. It now says shard chains are no longer needed and have been dropped from the roadmap, because layer 2 rollups scaled faster than expected.1 EIP-4844 describes itself as a stopgap that adopts the transaction format of full sharding without yet sharding the data.5
Blob data cannot be read by the EVM, has its own fee market modelled on EIP-1559 (see Gas Fee), and must be kept by consensus nodes for 4,096 epochs, about 18 days.5
Danksharding and NEAR’s stateless validation
Advanced
Full danksharding would raise the number of blobs per block from 6 to 64, rely on data availability sampling, and lean on proposer-builder separation so specialised builders do the heavy work.3
On NEAR, the “Simple Nightshade” phase had block producers track all shards and chunk-only producers track one. Since stateless validation arrived in protocol version 69, block producers no longer need to track every shard.6
Common mistakes
Thinking Ethereum still plans shard chains
Execution shard chains were dropped; Ethereum now shards data for rollups.1
Confusing proto-danksharding with full danksharding
Blobs went live in 2024; full danksharding with data availability sampling is still ahead.3 See Proto-Danksharding (EIP-4844).
Multiplying throughput by shard count
Real capacity depends on how evenly activity spreads and on cross-shard traffic, not just on the number of shards.
Treating blobs as permanent storage
Blobs are pruned after about 18 days; they guarantee publication, not archiving.3
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- Sharding splits a blockchain’s work so nodes handle only part of it in parallel.
- NEAR shards accounts and execution; Ethereum shards data for rollups.
- EIP-4844 added blobs of 128 KiB each, pruned after about 18 days.
- Full danksharding with data availability sampling is still years away.
- Cross-shard traffic and uneven demand limit the real gains.
Frequently asked questions
Is sharding live on Ethereum?
How many shards does NEAR have?
Further learning
- Layer 1 and Layer 2
Why Ethereum scales through rollups.
- Optimistic and ZK Rollups
The rollups that publish their data in blobs.
- NEAR Protocol (NEAR)
A live chain that shards execution.
- Gas Fee
How fee markets, including the blob market, price block space.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- ethereum.org. Ethereum roadmap (opens in a new tab) Checked .
- NEAR Docs. NEAR Data Flow (opens in a new tab) Checked .
- ethereum.org. Danksharding (opens in a new tab) Checked .
- NEAR (nearcore documentation). Resharding V2 (opens in a new tab) Checked .
- Ethereum Improvement Proposals. EIP-4844: Shard Blob Transactions (opens in a new tab) Checked .
- NEAR Protocol Specification (Nomicon). Selecting Chunk and Block Producers (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.