Connect to Xsolla ZK

Use the values below to connect a wallet, a deploy tool, or an app to Xsolla ZK or Xsolla ZK Testnet. Refer to the About Xsolla ZK page to learn how Xsolla ZK works.

Network configuration

PropertyXsolla ZKXsolla ZK Testnet
Network nameXsolla ZKXsolla ZK Testnet
Chain ID5790 (0x169e)579029 (0x8d5d5)
Currency nameXsolla GasTestnet Token
Currency symbolXLAXZK
Decimals1818
Block explorerzksync-os-mainnet-xsolla.explorer.zksync.devzksync-os-testnet-xsolla.explorer.zksync.dev
Verification APIhttps://block-explorer-api.zksync-os-mainnet-xsolla.zksync.dev/apihttps://block-explorer-api.zksync-os-testnet-xsolla.zksync.dev/api
Settlement layerEthereumEthereum Sepolia

Xsolla Gas is the currency’s onchain name, as wallets display it.

Notice
A separate public ZKsync OS testnet uses chain ID 8022833. Upstream ZKsync quickstarts point to that network. Replace the RPC URL, chain ID, and verifier URL with the values on this page, or your contracts deploy to a different chain.

Public endpoints

Notice
Public endpoints are rate-limited.
EndpointXsolla ZKXsolla ZK Testnet
RPC endpoint (HTTPS)https://zksync-os-mainnet-xsolla.zksync.devhttps://zksync-os-testnet-xsolla.zksync.dev
WebSocket endpointwss://zksync-os-mainnet-xsolla.zksync.dev/wswss://zksync-os-testnet-xsolla.zksync.dev/ws

Check your connection

This request needs no account, wallet, or signature, and sends no transaction. The response is the chain ID in hex.

Copy
Full screen
Small screen
1curl -s https://zksync-os-mainnet-xsolla.zksync.dev \
2  -H 'content-type: application/json' \
3  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
4# {"jsonrpc":"2.0","id":1,"result":"0x169e"}

Configure your tools

Xsolla ZK uses standard EVM tooling, the same tools you use for Ethereum, such as viem, Foundry, and Hardhat 3. Do not install ZKsync EraVM plugins such as foundry-zksync, hardhat-zksync, or zksolc. They are built for a different execution environment (EraVM), not for Xsolla ZK.

viem

Copy
Full screen
Small screen
 1import { defineChain } from "viem";
 2
 3export const xsollaZk = defineChain({
 4  id: 5790,
 5  name: "Xsolla ZK",
 6  nativeCurrency: { name: "Xsolla Gas", symbol: "XLA", decimals: 18 },
 7  rpcUrls: {
 8    default: {
 9      http: ["https://zksync-os-mainnet-xsolla.zksync.dev"],
10      webSocket: ["wss://zksync-os-mainnet-xsolla.zksync.dev/ws"],
11    },
12  },
13  blockExplorers: {
14    default: {
15      name: "Xsolla ZK Explorer",
16      url: "https://zksync-os-mainnet-xsolla.explorer.zksync.dev",
17      apiUrl: "https://block-explorer-api.zksync-os-mainnet-xsolla.zksync.dev/api",
18    },
19  },
20});
21
22export const xsollaZkTestnet = defineChain({
23  id: 579029,
24  name: "Xsolla ZK Testnet",
25  nativeCurrency: { name: "Testnet Token", symbol: "XZK", decimals: 18 },
26  rpcUrls: {
27    default: {
28      http: ["https://zksync-os-testnet-xsolla.zksync.dev"],
29      webSocket: ["wss://zksync-os-testnet-xsolla.zksync.dev/ws"],
30    },
31  },
32  blockExplorers: {
33    default: {
34      name: "Xsolla ZK Testnet Explorer",
35      url: "https://zksync-os-testnet-xsolla.explorer.zksync.dev",
36      apiUrl: "https://block-explorer-api.zksync-os-testnet-xsolla.zksync.dev/api",
37    },
38  },
39  testnet: true,
40});

Define the network with defineChain, as shown above. Do not use viem’s built-in zksync chains and extensions: they are built for EraVM.

Foundry

Copy
Full screen
Small screen
1# Deploy
2forge script script/Deploy.s.sol \
3  --rpc-url https://zksync-os-testnet-xsolla.zksync.dev \
4  --broadcast --skip-simulation \
5  --private-key $PRIVATE_KEY

The example uses the testnet. For mainnet, use chain ID 5790 and the mainnet URLs from the tables above.

--skip-simulation skips local gas simulation, which does not include the settlement cost. Refer to the Transaction fees page.

Hardhat 3

Copy
Full screen
Small screen
 1// hardhat.config.ts
 2import { configVariable, defineConfig } from "hardhat/config";
 3
 4export default defineConfig({
 5  networks: {
 6    xsollaZkTestnet: {
 7      type: "http",
 8      chainType: "generic",
 9      url: "https://zksync-os-testnet-xsolla.zksync.dev",
10      accounts: [configVariable("PRIVATE_KEY")],
11    },
12  },
13  chainDescriptors: {
14    579029: {
15      name: "Xsolla ZK Testnet",
16      blockExplorers: {
17        blockscout: {
18          url: "https://zksync-os-testnet-xsolla.explorer.zksync.dev",
19          apiUrl: "https://block-explorer-api.zksync-os-testnet-xsolla.zksync.dev/api",
20        },
21      },
22    },
23  },
24});
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.

Next steps

Last updated: November 24, 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].