MEGAETHDOCS
GitHubGet started →
Architecture

Resource Limits

MegaEVM enforces additional limits beyond standard EVM gas ceilings to protect throughput and stability.

Limit Categories

ResourcePer TransactionPer Block
Compute GasBounded by tx gas limitBounded by block gas limit
Storage GasBounded by tx storage capBounded by block storage cap
Storage slots writtenCappedCapped
Contract bytecode sizeEIP-170 alignedn/a

If a limit is exceeded, transaction execution halts and state changes revert while consumed gas remains charged.

Practical Guidance

  • Keep calldata and logs compact.
  • Reuse storage slots where possible.
  • Prefer cursor-based log retrieval for large ranges.

Was this page helpful?

Edit on GitHub