Architecture
Resource Limits
MegaEVM enforces additional limits beyond standard EVM gas ceilings to protect throughput and stability.
Limit Categories
| Resource | Per Transaction | Per Block |
|---|---|---|
| Compute Gas | Bounded by tx gas limit | Bounded by block gas limit |
| Storage Gas | Bounded by tx storage cap | Bounded by block storage cap |
| Storage slots written | Capped | Capped |
| Contract bytecode size | EIP-170 aligned | n/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