Proof-of-Entropy-Minima (PoEM) allows Quai Network to efficiently coordinate a large number of execution shards, with the network able to dynamically increase capacity to meet endless demand. Dynamic sharding involves adding more execution shards to the network as needed to process a higher volume of transactions. This is handled by the protocol itself. In Quai Network, dynamic sharding is done by creating the first blocks of a new region chain and its related zones, then connecting them to the network’s overall consensus. Additionally, when dynamic sharding occurs, all existing region chains will gain an additional subordinate zone.

Two network properties help the Quai protocol know when to add execution shards: the rate of uncle blocks, and the gas limit.

Uncle Rate

In blockchain protocols, uncle blocks are blocks that meet the blockchain’s difficulty level when proposed but don’t end up as part of the canonical chain. Uncle blocks occur when several miners find and propose valid blocks at nearly the same time; one block is chosen for the canonical chain and the others become “uncles.” Uncle blocks in hash-based chains are a result of excessive throughput, reducing hash efficiency and slowing both statistical and economic finality. The Quai protocol can measure the rate of uncle blocks. If a certain ratio of uncle to canonical blocks is reached over a sustained period, the protocol triggers the creation of the first blocks for an additional region and its related zone chains. These are woven into global consensus. By adding more execution shards, the network’s throughput increases and congestion in the rest of the network eases. This brings down the rate of uncle blocks, allowing the Quai protocol to keep a high hash-efficiency that offers quick finality guarantees.

Gas Limit

The Quai protocol can also see how full blocks are by looking at the amount of gas used in each block out of the gas limit. When a block uses up its gas limit (all computational capacity in a block is used), fees start to go up. In single-chain networks like Ethereum, the base fee to be included in a block can get to $50 or more when the gas limit is reached, as users have to start outbidding each other to be included in a block.

Quai Network can keep transaction fees permanently under $0.01 by adding new execution shards when the gas limit is reached in a sustained series of blocks. Users in Quai never have to keep outbidding each other for block space for a long time, as throughput can be increased as needed to match user and demand growth when the bidding starts.

Time To Global Settlement

When Quai Network expands, a new region chain is added, along with its new zone chains. Also, a new zone chain is added to each existing region. So, if Quai starts with a 3x3 layout (3 regions, 3 zones per region), it will become a 4x4 layout when it expands. Another expansion would make Quai a 5x5 layout. This pattern of adding more execution shards (and thus throughput) can be repeated endlessly. The tradeoff of expanding the network in Quai is a longer time to global settlement.

In this context, settlement is different from finality. Finality is when a transaction is known to be either canonical or not worth rolling back, while settlement is when the transaction’s destination address can spend the received funds. In Quai Network, transactions in zone chains achieve statistical and economic finality separate from settlement times. So, a transaction can be known to be canonical (statistically finalized) and not worth rolling back (economically finalized) before the transaction’s funds can be spent at the destination address (settled).

Average time to Global (prime) settlement can be measured by the following equation, where:

  • TSₚ = Average time to Global (prime) settlement (in seconds)
  • nₛ = Number of zones per region
  • tᵣ = Average region block time (in seconds) = 100
  • nᵣ = Number of regions in the system
  • tₚ = Average prime block time (in seconds) = 1,000
TSp=(nstr)+(nrtp)TS_{p} = (n_{s} * t_{r}) + (n_{r} * t_{p})


Number of RegionsNumber of Zones per RegionTime to Regional Settlement†Time to Global Settlement†
39300s3,300s
416400s4,400s
525500s5,500s
636600s6,600s
749700s7,700s
864800s8,800s
981900s9,900s
101001,000s11,000s

Time to regional and Global settlement are given in averages. Block production in Quai Network is a stochastic process, meaning that real-world settlement times will have minor variance.

The following diagram demonstrates a distribution of cross-chain transactions that pass through Prime. With the average time to achieve global settlement at 3,300 seconds, ~50% of cross-Prime transactions will take longer than 3,300s to process.