Network Details

Connect to ZKsync OS Developer Preview testnet

Add ZKsync OS Developer Preview to your MetaMask wallet

You can add ZKsync OS Developer Preview to your MetaMask wallet using the buttons below:

If you are using a different in-browser wallet, the buttons above may also work for them.

Manually add ZKsync OS Developer Preview

To manually add ZKsync OS Developer Preview as a custom network in your wallet, follow these steps:

  1. Find the “Add Network” option in your wallet (in MetaMask, you can find this in the networks dropdown).
  2. Click on “Add Network" and "Add network manually".
  3. Fill in the following details for the ZKsync OS Developer Preview testnet:

Network details

PropertyValue
Network Name
ZKsync OS Developer Preview
RPC URL
https://zksync-os-testnet-alpha.zksync.dev/
WebSocket URL
wss://zksync-os-testnet-alpha.zksync.dev/ws
Chain ID
8022833
Currency Symbol
ETH
Block Explorer URL
Explorer Verification API
https://block-explorer-api.zksync-os-testnet-alpha.zksync.dev/api

Get funds for your wallet

Once you have your wallet connected to the ZKsync OS Developer Preview environment, you can bridge testnet ETH from Sepolia Testnet. You can get testnet funds from one of many testnet faucets.

Bridging testnet ETH

You can use the ZKsync OS Portal to bridge testnet ETH over. You can also use cast or zksync-sdk as shown in the examples below.

Bridging with cast

export BRIDGEHUB_ADDRESS=0xc4fd2580c3487bba18d63f50301020132342fdbd
export CHAIN_ID=8022833
export SEPOLIA_RPC=<YOUR_SEPOLIA_RPC_ENDPOINT>
export ZKOS_RPC=https://zksync-os-testnet-alpha.zksync.dev/
export ADDRESS=<YOUR_WALLET_ADDRESS>
export VALUE_TO_BRIDGE=<AMOUNT_TO_BRIDGE_IN_WEI>
cast send -r $SEPOLIA_RPC $BRIDGEHUB_ADDRESS "requestL2TransactionDirect((uint256,uint256,address,uint256,bytes,uint256,uint256,bytes[],address))" "($CHAIN_ID,$VALUE_TO_BRIDGE,$ADDRESS,50,0x,300000,800,[],$ADDRESS)" --value $VALUE_TO_BRIDGE --private-key=$PRIVATE_KEY

Bridging with zksync-sdk

You can find examples for bridging with ethers or viem in the zksync-sdk docs.


Made with ❤️ by the ZKsync Community