Differences from Ethereum
Xsolla ZK is an Ethereum Layer 2 (L2) that runs ZKsync OS. ZKsync OS supports standard EVM tooling and compilers such as solc and Vyper. The current ZKsync OS FAQ lists Cancun as its initial EVM target; compile for Cancun and confirm later opcode support against the current Xsolla ZK release.
Review the differences below to make sure your contracts behave as you expect.
Summary of differences
| Behavior | Ethereum | Xsolla ZK | What to do |
|---|---|---|---|
| EVM target | Fusaka (Ethereum mainnet, as of 2026-10-28) | Cancun (ZKsync OS initial target) | Set your compiler’s EVM version to cancun; confirm later opcode support against the current Xsolla ZK release. |
| Blake2f and KZG precompiles | Available on Ethereum | The ZKsync OS FAQ lists both as unsupported; not separately verified on the current Xsolla ZK release | Check the current chain release before relying on them. |
| Native currency | ETH | XLA (XZK on testnet) | Fund accounts with XLA on mainnet and XZK on testnet, not ETH. |
| Transaction cost | EVM gas only | The higher of EVM gas and the settlement cost in gas units | Estimate on Xsolla ZK and add headroom on storage-heavy transactions. |
PREVRANDAO | Beacon randomness | Always 1 | Use a VRF or commit-reveal. |
| State proofs | eth_getProof; Merkle-Patricia trie | eth_getProof not supported; binary Merkle tree | Use zks_getProof. |
| Account abstraction | ZKsync OS supports ERC-4337 | EntryPoint v0.7 is deployed on testnet; no code is present on mainnet as checked 2026-10-28. | Check Contract addresses before relying on it. |
| EIP-7702 | Supported | Not confirmed on Xsolla ZK | Do not rely on type-4 transactions until support is confirmed. |
Hardfork level
The current ZKsync OS FAQ lists Cancun as its initial EVM target. Set your compiler’s EVM version to cancun. Confirm opcode availability against the current Xsolla ZK release before using features added after Cancun.
- toml
1# foundry.toml
2[profile.default]
3evm_version = "cancun"
Precompiles
The current ZKsync OS FAQ lists these precompiles as unsupported. Confirm support against the current Xsolla ZK release before relying on them:
- Blake2f (
0x09) - KZG point evaluation (
0x0a)
Transaction costs
ZKsync OS meters two resources: EVM gas, as on Ethereum, and the settlement cost — proving the transaction and publishing its data to Ethereum. It converts the settlement cost into gas units at the end of the transaction; if the result exceeds the EVM gas used, the difference is added to gasUsed. Receipts can show more gas than the same transaction on Ethereum.
Fees are paid in XLA on mainnet and in XZK on testnet, not in ETH.
To ensure accurate gas limits:
- Estimate against the chain. Call
eth_estimateGason the Xsolla ZK RPC; it includes the settlement cost. Don’t hardcode gas limits from Ethereum or from a local simulation, which can be too low. - Add headroom on storage-heavy transactions. The amount depends on the transaction and current network conditions; a fixed percentage does not guarantee success.
See Transaction fees for how the fee is calculated.
Block properties
| Property | Behavior on Xsolla ZK |
|---|---|
block.prevrandao | Always 1. |
block.coinbase | The operator’s fee address. |
block.basefee | Set by the operator from execution and settlement costs, according to the ZKsync OS fee model. |
block.gaslimit | Set to 100,000,000. |
block.prevrandao for randomness. Use a verifiable random function (VRF) or a commit-reveal scheme instead.Block headers report stateRoot as zero. Do not read state commitments from the L2 header.
State and storage proofs
ZKsync OS stores state in a binary Merkle tree, not Ethereum’s Merkle-Patricia trie. Contract storage and execution behave the same; only proofs change.
The eth_getProof method returns an error. Use zks_getProof(address, keys, l1BatchNumber), which returns a proof you can check against the batch commitment on Ethereum.
Contract deployment
Use standard EVM CREATE and CREATE2 deployment semantics. The EIP-170 runtime code size limit is 24,576 bytes (EIP-170).
The Arachnid deterministic deployment proxy at 0x4e59b44847b379578588920cA78FbF26c0B4956C is deployed on Xsolla ZK mainnet and testnet. A Foundry deployment script can call this proxy explicitly; forge script does not select it automatically.
A presigned deployment can fail if its gas limit and fee do not cover the chain’s native resource cost. Estimate against the Xsolla ZK RPC and do not reuse Ethereum gas limits. See ZKsync OS double resource accounting.
Account abstraction
When implementing smart accounts, note the following support boundaries:
- ERC-4337 is supported by ZKsync OS (see the ZKsync OS FAQ). EntryPoint v0.7 is deployed on Xsolla ZK Testnet; no code is present on mainnet as checked 2026-10-28. See Contract addresses before relying on it in production.
- EIP-7702 support has not been confirmed on Xsolla ZK. Do not rely on type-4 transactions until support is confirmed.
- ZKsync EraVM native abstraction (Unsupported). Xsolla ZK uses standard EVM execution. Native ZKsync transaction type
0x71and its custom paymaster fields are not supported. For more information, see Transaction types.
Transaction types
Xsolla ZK accepts legacy (type 0), EIP-2930 (type 1), and EIP-1559 (type 2) transactions. ZKsync EraVM transaction type 0x71 is not supported.
RPC methods
The following behavior was checked against Xsolla ZK mainnet and testnet RPCs on 2026-10-28:
eth_getProofreturns an unsupported error. Usezks_getProoffor state proofs.eth_maxPriorityFeePerGasreturns0.
These are checked differences, not a complete list of supported RPC methods. For chain-specific bridge and proof operations, use the zks_ methods documented in this section: zks_getProof above, and zks_getBridgehubContract in Protocol contracts.
Tooling
Use the standard EVM toolchain. ZKsync EraVM plugins target a different virtual machine.
| Category | Use | Do not use |
|---|---|---|
| EVM framework | Foundry (forge, cast, anvil), Hardhat 3 with chainType: "generic" | foundry-zksync, @matterlabs/hardhat-zksync plugins |
| Compiler | solc, Vyper | zksolc, zkvyper |
| Client libraries | viem defineChain, ethers JsonRpcProvider | viem zksync chain presets, zksync-ethers providers |
Useful links
Last updated: October 29, 2026Found a typo or other text error? Select the text and press Ctrl+Enter.