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

BehaviorEthereumXsolla ZKWhat to do
EVM targetFusaka (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 precompilesAvailable on EthereumThe ZKsync OS FAQ lists both as unsupported; not separately verified on the current Xsolla ZK releaseCheck the current chain release before relying on them.
Native currencyETHXLA (XZK on testnet)Fund accounts with XLA on mainnet and XZK on testnet, not ETH.
Transaction costEVM gas onlyThe higher of EVM gas and the settlement cost in gas unitsEstimate on Xsolla ZK and add headroom on storage-heavy transactions.
PREVRANDAOBeacon randomnessAlways 1Use a VRF or commit-reveal.
State proofseth_getProof; Merkle-Patricia trieeth_getProof not supported; binary Merkle treeUse zks_getProof.
Account abstractionZKsync OS supports ERC-4337EntryPoint 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-7702SupportedNot confirmed on Xsolla ZKDo 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.

Copy
Full screen
Small screen
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_estimateGas on 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

PropertyBehavior on Xsolla ZK
block.prevrandaoAlways 1.
block.coinbaseThe operator’s fee address.
block.basefeeSet by the operator from execution and settlement costs, according to the ZKsync OS fee model.
block.gaslimitSet to 100,000,000.
Notice
Don’t use 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 0x71 and 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_getProof returns an unsupported error. Use zks_getProof for state proofs.
  • eth_maxPriorityFeePerGas returns 0.

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.

CategoryUseDo not use
EVM frameworkFoundry (forge, cast, anvil), Hardhat 3 with chainType: "generic"foundry-zksync, @matterlabs/hardhat-zksync plugins
Compilersolc, Vyperzksolc, zkvyper
Client librariesviem defineChain, ethers JsonRpcProviderviem zksync chain presets, zksync-ethers providers
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.

Useful links

Last updated: October 29, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].