Fees & Gas
How Xhavic's two-component fee model works — L2 execution fees paid in XHAV and L1 data fees.
Fee Model
Xhavic transaction fees have two components:
L2 Execution Fee — The cost of executing your transaction on the Xhavic EVM. Paid in XHAV (native token). Significantly cheaper than Ethereum.
L1 Data Fee — The cost of posting your transaction’s calldata to Ethereum for data availability. L1 costs are amortized across all transactions in a batch, so the effective per-user L1 cost is very low (typically less than 1% of total fees).
Total Fee = L2 Execution Fee (paid in XHAV) + L1 Data Fee (amortized)
Cross-Chain Gas
| Layer | Token | Description |
|---|---|---|
| L2 gas | XHAV | Paid by users for transaction execution |
| L1 gas | ETH | Paid only for settlement (state root commitments) |
Users experience 50-100x lower fees compared to Ethereum mainnet. This fee model is identical to Optimism and Arbitrum.
Cost Comparison
Xhavic vs Ethereum L1
| Operation | Ethereum L1 | Xhavic L2 | Savings |
|---|---|---|---|
| Simple ETH transfer | ~$5.00 | ~$0.04 | 125x |
| ERC-20 transfer | ~$8.00 | ~$0.04 | 200x |
| Token swap (DEX) | ~$15.00 | ~$0.12 | 125x |
| NFT mint | ~$25.00 | ~$0.08 | 312x |
| Contract deployment | ~$50.00 | ~$1.50 | 33x |
Costs based on testnet benchmarks, January 2026. L1 costs assume ~30 gwei gas price.
Gas Cost Table (L2 vs L1)
| EVM Opcode | Ethereum L1 | Xhavic L2 | Reduction |
|---|---|---|---|
| SSTORE (new) | 20,000 | 500 | 40x |
| SLOAD | 2,100 | 50 | 42x |
| Transaction base | 21,000 | 300 | 70x |
| CREATE2 | 32,000 | 800 | 40x |
Fee Optimization Tips
- Minimize calldata — L1 data fees scale with transaction size.
- Batch operations — Combine multiple operations to share the base fee.
- Use events for off-chain data — Emit logs instead of writing to storage.
- Avoid storage writes when possible — SSTORE remains the most expensive operation.