Connect to testnet
Zero's testnet before launch: how to get access, the RPC, archive and faucet endpoints, the rate limit, and the network details to add to your wallet or tooling.
On this page
Zero's testnet is open to approved partners before launch. You reach the JSON-RPC from an allowlisted IP address, or from anywhere with a registered Console API key or token. The WebSocket, the archive RPC and the second full node admit only allowlisted IP addresses, and the faucet only allowlisted wallet addresses. The explorer is public. See Access. The testnet runs the EVM Zone, so standard Ethereum tooling works against it.
Endpoints
| Resource | URL | Who can reach it |
|---|---|---|
| JSON-RPC (HTTPS) | https://testnet.zero.layerzero.network/ | Allowlisted IPs, or a Console API key or token |
| JSON-RPC (WebSocket) | wss://testnet.zero.layerzero.network/ | Allowlisted IPs |
| Archive RPC | https://archive.testnet.zero.layerzero.network/ | Allowlisted IPs |
| Second full node | https://rpc.testnet.zero.layerzero.network/ | Allowlisted IPs |
| Block explorer | testnet.explorer.evm.zero.layerzero.network | Public |
| Faucet | faucet.testnet.zero.layerzero.network | Allowlisted wallet addresses |
The archive RPC serves finalized history: older blocks, the archive_* methods and tracing. The second full node follows the chain from the Store, the way a partner's own full node does, and answers the same JSON-RPC.
The RPC is standard Ethereum JSON-RPC, over HTTPS or WebSocket. Over WebSocket you can subscribe with eth_subscribe:
| Subscription | Supported |
|---|---|
newHeads | Yes: a notification for each new block |
logs | Yes |
syncing | Yes |
newPendingTransactions | No: refused with -32004 |
Blocks are produced only when there are transactions, so newHeads can go quiet for long stretches. A quiet subscription doesn't mean the connection has dropped.
Network details
- Network
- Zero testnet (EVM Zone)
- Chain ID
43002(0xa7fa)- LayerZero endpoint ID
43002. Contract addresses and DVNs are in LayerZero deployment- Native token
- ZRO, 18 decimals. It pays for gas
- Fees
- EIP-1559: a base fee plus a priority fee
- Block gas limit
- 30,000,000
- Blocks
- Produced only when there are transactions, so block numbers grow slowly
- History
- The JSON-RPC serves the most recent 256 blocks. For older blocks, the
archive_*methods and tracing, use the archive RPC
Check that you can reach the RPC, and that it's the network you expect:
curl -s -X POST https://testnet.zero.layerzero.network/ \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
# → {"jsonrpc":"2.0","id":1,"result":"0xa7fa"}A refused or timed-out request usually means the IP address you're connecting from isn't on the allowlist yet. From an address that isn't allowlisted, send your Console API key or token with the request:
curl -s -X POST https://testnet.zero.layerzero.network/ \
-H 'Content-Type: application/json' \
-H 'x-api-key: lzk_…' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'Access
| Endpoint | From an allowlisted IP | With a Console API key or token |
|---|---|---|
| JSON-RPC over HTTPS, and the Store API | Yes | Yes |
| JSON-RPC over WebSocket | Yes | No |
| Archive RPC | Yes | No |
| Second full node | Yes | No |
- Console credentials. Send a registered Console API key as
x-api-key: lzk_…, or a Console token asAuthorization: Bearer …. - IP allowlist. To use the WebSocket, the archive RPC or the second full node, send your LayerZero contact the public IPv4 addresses your requests leave from (your egress IPs; behind NAT, the NAT's public address). Tell them before those addresses change.
- Faucet. The faucet sends only to allowlisted wallet addresses for now.
- Rate limit. 50,000 requests per 5 minutes per address.
Add it to your wallet
Add the testnet to a browser wallet such as Rabby or MetaMask in one click:
Or add a custom network with these values:
| Field | Value |
|---|---|
| Network name | Zero Testnet |
| RPC URL | https://testnet.zero.layerzero.network/ |
| Chain ID | 43002 |
| Currency symbol | ZRO |
| Block explorer URL | https://testnet.explorer.evm.zero.layerzero.network/ |
Add or switch from a dapp
A dapp can ask the user's wallet to switch to the testnet with wallet_switchEthereumChain (EIP-3326). If the wallet doesn't have the network yet, it returns error 4902. The dapp can then add the network with wallet_addEthereumChain (EIP-3085), which also switches to it once the user approves.
const zeroTestnet = {
chainId: '0xa7fa', // 43002
chainName: 'Zero Testnet',
nativeCurrency: { name: 'ZRO', symbol: 'ZRO', decimals: 18 },
rpcUrls: ['https://testnet.zero.layerzero.network/'],
blockExplorerUrls: ['https://testnet.explorer.evm.zero.layerzero.network/'],
};
try {
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId: zeroTestnet.chainId }],
});
} catch (err) {
if (err.code !== 4902) throw err;
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [zeroTestnet],
});
}The wallet sends these requests, not the RPC node. Calling either method on the RPC directly returns -32601 Method not found. Before it adds the network, the wallet calls eth_chainId on the RPC URL and checks that it returns 0xa7fa. A wallet sends no Console credentials, so the user's IP address has to be on the allowlist.
Get testnet ZRO
The faucet sends 10 ZRO to an address you enter, once every 24 hours per address. For now it sends only to allowlisted addresses: ask your LayerZero contact to add yours. That covers gas for deploying and testing contracts. Testnet ZRO has no value and exists only on the testnet.
How the EVM Zone differs from Ethereum
The testnet follows the EVM Zone's execution rules. Read How the EVM Zone differs from Ethereum before you deploy: some opcodes and block fields behave differently from Ethereum.