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

  1. Split the state or data

    The network decides what to divide. NEAR assigns accounts to shards through a shard layout.4 Ethereum divides the data rollups publish into blobs.5

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

Blobs

EIP-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

Example 1 — How much data a blob carries — calculation
Bytes per blob4,096 × 32 = 131,072
That is128 KiB
Target per block3 × 131,072 = 393,216 bytes
Maximum per block6 × 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 fees

A 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

Example 2 — Why blobs cut layer 2 fees — calculation
Blob cost0.002 ETH
Transactions in the blob1,000
Data cost per transaction0.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

Throughput

NEAR’s “Simple Nightshade” layout split accounts into 4 shards.4 Assume, hypothetically, that one shard can process 1,000 transactions per second.

Example 3 — Splitting one shard into four — calculation
Capacity of one shard1,000 tx/s
Number of shards4
Nominal capacity4 × 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

AspectExecution sharding (NEAR)Data sharding (Ethereum)
What is splitAccounts and their execution2Rollup data in blobs5
Where users transactDirectly on the shardsMostly on layer 2 rollups1
StatusLive, with layouts changed by resharding4Blobs live since 2024; full danksharding still ahead3

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

  1. Thinking Ethereum still plans shard chains

    Execution shard chains were dropped; Ethereum now shards data for rollups.1

  2. 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).

  3. 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.

  4. 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.

Q1A blob holds 131,072 bytes. How many bytes do 4 blobs hold?
Q2What does Ethereum shard today, after dropping shard chains?

Key points to remember

  1. Sharding splits a blockchain’s work so nodes handle only part of it in parallel.
  2. NEAR shards accounts and execution; Ethereum shards data for rollups.
  3. EIP-4844 added blobs of 128 KiB each, pruned after about 18 days.
  4. Full danksharding with data availability sampling is still years away.
  5. Cross-shard traffic and uneven demand limit the real gains.

Frequently asked questions

Is sharding live on Ethereum?

Partly. Proto-danksharding, which added blobs, went live with the Dencun upgrade in March 2024.3 Full danksharding is not live yet.

How many shards does NEAR have?

The number changes through resharding. The nearcore documentation describes layouts with 4 and then 5 shards; check a current explorer for the live figure.4

Does sharding make a blockchain less secure?

It can if validators are spread too thinly. Designs counter this by balancing stake across shards and by sampling to confirm data is available.63

Further learning

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.

  1. ethereum.org. Ethereum roadmap (opens in a new tab) Checked .
  2. NEAR Docs. NEAR Data Flow (opens in a new tab) Checked .
  3. ethereum.org. Danksharding (opens in a new tab) Checked .
  4. NEAR (nearcore documentation). Resharding V2 (opens in a new tab) Checked .
  5. Ethereum Improvement Proposals. EIP-4844: Shard Blob Transactions (opens in a new tab) Checked .
  6. 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.