Elrond sharding

MultiversX uses Adaptive State Sharding to distribute transaction processing and account state across parallel execution shards. The blockchain carried the Elrond name before its November 2022 rebrand. A separate metachain coordinates the shard information needed for cross-shard execution.

Mainnet layout
Three execution shards and one coordinating metachain in the configuration documented by MultiversX.
Consensus mechanism
Secure Proof of Stake, which establishes agreement on shard blocks.

How are transactions and state split?

MultiversX assigns an account to an execution shard using the last bytes of its address. That assignment determines where the account state is maintained and which shards participate in transactions involving the account.

Network sharding
Validator nodes are distributed among shards, allowing their groups to work in parallel.
Transaction sharding
Transactions are handled by the shard or shards responsible for their sender and receiver accounts.
State sharding
An execution shard stores the balances and nonces of its accounts, together with the code and storage of contract accounts.

These partitions work together: the validators assigned to a shard process its transaction workload against the account state held there.

ESDT token balances are stored within an account's data trie, so that token state follows the account's shard assignment. Protocol-level ESDT transfers use the same cross-shard handling mechanisms as native EGLD transfers. An issued ESDT does not need a dedicated token contract, although applications using the token can have their own contracts.


Same-shard execution and cross-shard delivery

An intra-shard transaction has its sender and receiver in the same execution shard and is processed within that shard. A cross-shard transaction requires work in both the source and destination shards, coordinated through the metachain.

Cross-shard transactions are grouped into miniblocks according to their source-shard and destination-shard pair. The source shard processes its part, and the metachain notarizes the finalized shard header and associated miniblock hashes. This notarization allows the destination shard to process the source shard's cross-shard output. The metachain coordinates this information without executing ordinary user transfers itself.

Since the Andromeda upgrade, a shard block reaches finality through consensus within its own shard, independently of the metachain. Cross-shard execution can still be unfinished when the source block is final. A hyperblock provides a combined view containing only fully executed transactions, with the final execution step notarized by the metachain.

Contract calls across shard boundaries

Smart contracts in the same shard can call one another synchronously within the virtual machine. A call to a contract in another shard uses asynchronous execution, with the outcome available through a callback if the calling contract registers one. Distributing contracts across shards permits parallel work, while dependencies between those contracts require cross-shard messaging.

A later failing contract call does not automatically reverse a successful earlier operation already committed on another shard. Any required compensating action belongs to the application's contract logic. The separate executions therefore do not form a single all-or-nothing operation merely because the protocol routes their messages.

Diagram: Elrond sharding: Contract calls across shard boundaries
Contract calls across shard boundaries - diagram.

Open full-size image


Adaptive capacity and validator reshuffling

Shard splitting and merging are designed to change the network's partitioning in response to both usage and the number of available validator nodes. The MultiversX terminology reference distinguishes this architectural capability from production behavior: it records that split-and-merge resharding has not been triggered in the documented mainnet configuration, which has kept a stable shard count since 2020.

Secure Proof of Stake supplies consensus within the partitions. Validator reshuffling changes which nodes secure them: at each epoch boundary, approximately every 24 hours, up to one-third of each shard's validators are reassigned to other shards to reduce opportunities for collusion. Reassigning validators changes shard membership; splitting or merging shards changes the partitions themselves.


Checklist for interpreting sharding claims

  • For a transfer between different shards, distinguish source-block finality from completed destination execution.
  • For a contract dependency across shards, account for any registered callback and the application's handling of a later failure.
  • For a scaling claim, distinguish the deployed shard count from the protocol's split-and-merge capability and periodic validator reshuffling.
· last updated