xhavic.io
GitHub (Coming Soon) Whitepaper
Docs / How Xhavic Works

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

LayerTokenDescription
L2 gasXHAVPaid by users for transaction execution
L1 gasETHPaid 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

OperationEthereum L1Xhavic L2Savings
Simple ETH transfer~$5.00~$0.04125x
ERC-20 transfer~$8.00~$0.04200x
Token swap (DEX)~$15.00~$0.12125x
NFT mint~$25.00~$0.08312x
Contract deployment~$50.00~$1.5033x

Costs based on testnet benchmarks, January 2026. L1 costs assume ~30 gwei gas price.

Gas Cost Table (L2 vs L1)

EVM OpcodeEthereum L1Xhavic L2Reduction
SSTORE (new)20,00050040x
SLOAD2,1005042x
Transaction base21,00030070x
CREATE232,00080040x

Fee Optimization Tips

  1. Minimize calldata — L1 data fees scale with transaction size.
  2. Batch operations — Combine multiple operations to share the base fee.
  3. Use events for off-chain data — Emit logs instead of writing to storage.
  4. Avoid storage writes when possible — SSTORE remains the most expensive operation.