level
Mid Level Reading
27 May, 2024

Chunk (NEAR)

[ Chuhngk ]

In the NEAR protocol, a chunk refers to a portion of each block generated through the process of sharding.

Yulia Zakharchuk
Written by
Julia Zakharchuk
Yulia Zakharchuk Julia Zakharchuk Expert Author
Julia is a professional crypto and blockchain writer known for her insightful YouTube channel "MoneyFest." She showcases her dynamic presentation skills as a host and moderator at blockchain conferences. Julia drives also business development at ChainUp and advises UNITBOX, an innovative NFT renting protocol. With her exceptional expertise, Julia is a highly valued industry contributor...
Michael Gord
Fact checked by
Michael Gord
Michael Gord Michael Gord Expert
Michael, co-founder, and CEO of Global Digital Assets (GDA) Group, is a distinguished figure in the blockchain and Metaverse industries, with a focus on capital markets. As the former Managing Director of the XDB Foundation and CEO of MLG Blockchain, he has been involved in over $25 billion of digital asset financings. A pioneer in...

What Is Chunk

blockquote icon

In blockchain, a “chunk” is a transaction data partition designed to increase the block validator’s throughput, also known as sharding.

The shard and chunk definitions can be interchangeably used, although the latter is only used in the NEAR protocol context.

Database sharding example
Database sharding example | Source: Medium.com

As shown above, sharding is a horizontal scalability solution that allows validator nodes to split the block validation with each other. Each block may include over 2,000 transactions and can’t be broadcasted until all have been processed.

Instead, protocols like NEAR may split this into ten validator groups and transaction ranges to verify all at once. The more the shards/chunks, the more scalable—but also more centralized if the network isn’t big enough.

The NEAR network has 6 shards per block and over 200 validators to achieve a block time of 1-2 seconds.

What Is The Role of Chunk on NEAR Protocol 

Chunks are one of the scalability components of the NEAR sharding solution dubbed “Nightshade:”

“Nightshade,” the NEAR sharding solution
“Nightshade,” the NEAR sharding solution | Source: Tangem.com

Chunks affect two roles:

  • Transaction execution: Chunks allow validators to process transactions in parallel while maintaining the history (failed and successful transactions)
  • State storage: Chunks offer indexing and search features to easily review their state history

After all shards are validated, the NEAR protocol combines them into the next block while still maintaining cross-shard communication. This means that after blocks are reconstructed and published, users can still look up the history of each shard.

Conclusion

Chunks are scalability components of a unique sharding model designed by NEAR. Not only can it manage millions of transactions per second, but it also reduces the entry barrier for new validators and decentralizes the network.

To extend its utility, NEAR now supports the Ethereum Virtual Machine (EVM) via Aurora.

doc ico
Article Sources
arrow ico

Coinweb requires writers to use primary sources to support their work. These include white papers, government data, original reporting, and interviews with industry experts. We also reference original research from other reputable publishers. You can learn more about the standards we follow in producing accurate, unbiased content in our editorial process.

Yulia Zakharchuk
Written by

Julia is a professional crypto and blockchain writer known for her insightful YouTube channel “MoneyFest.” She showcases her dynamic presentation skills as a host and moderator at blockchain conferences.

Julia drives also business development at ChainUp and advises UNITBOX, an innovative NFT renting protocol. With her exceptional expertise, Julia is a highly valued industry contributor and is set to make a lasting impact.

More crypto lingo