ZKsync OS Network
Get connected to ZKsync OS Devnet
Add ZKsync OS Devnet to your MetaMask wallet
You can add ZKsync OS Devnet 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 Devnet
To manually add ZKsync OS Devnet as a custom network in your wallet, follow these steps:
- Find the “Add Network” option in your wallet (in MetaMask, you can find this in the networks dropdown).
- Click on “Add Network" and "Add network manually".
- Fill in the following details for the ZKsync OS Devnet environment:
Network details
Property | Value |
---|---|
Network Name | ZKsync OS Devnet |
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 | (coming soon) |
Get devnet funds for your wallet
Once you have your wallet connected to the ZKsync OS Devnet environment, you can bridge testnet ETH from Sepolia Testnet to ZKsync OS Devnet. You can get testnet funds from one of many testnet faucets.
Bridging testnet ETH
The ZKsync portal is not yet updated to support ZKsync OS.
Until then, you can use cast
or zksync-sdk
to manually bridge funds over 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_DEVNET_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.