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
| Property | Xsolla ZK | Xsolla ZK Testnet |
|---|---|---|
| Network name | Xsolla ZK | Xsolla ZK Testnet |
| Chain ID | 5790 (0x169e) | 579029 (0x8d5d5) |
| Currency name | Xsolla Gas | Testnet Token |
| Currency symbol | XLA | XZK |
| Decimals | 18 | 18 |
| Block explorer | zksync-os-mainnet-xsolla.explorer.zksync.dev | zksync-os-testnet-xsolla.explorer.zksync.dev |
| Verification API | https://block-explorer-api.zksync-os-mainnet-xsolla.zksync.dev/api | https://block-explorer-api.zksync-os-testnet-xsolla.zksync.dev/api |
| Settlement layer | Ethereum | Ethereum Sepolia |
Xsolla Gas is the currency’s onchain name, as wallets display it.
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
| Endpoint | Xsolla ZK | Xsolla ZK Testnet |
|---|---|---|
| RPC endpoint (HTTPS) | https://zksync-os-mainnet-xsolla.zksync.dev | https://zksync-os-testnet-xsolla.zksync.dev |
| WebSocket endpoint | wss://zksync-os-mainnet-xsolla.zksync.dev/ws | wss://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.
- bash
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
- ts
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
- bash
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
- ts
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});
Next steps
Last updated: November 24, 2026Found a typo or other text error? Select the text and press Ctrl+Enter.