Skip to content

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.

Checking your access to the Zero testnet…

Endpoints

ResourceURLWho 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 RPChttps://archive.testnet.zero.layerzero.network/Allowlisted IPs
Second full nodehttps://rpc.testnet.zero.layerzero.network/Allowlisted IPs
Block explorertestnet.explorer.evm.zero.layerzero.networkPublic
Faucetfaucet.testnet.zero.layerzero.networkAllowlisted 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:

SubscriptionSupported
newHeadsYes: a notification for each new block
logsYes
syncingYes
newPendingTransactionsNo: 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
Chain ID
LayerZero endpoint ID
Native token
Fees
Block gas limit
Blocks
History

Check that you can reach the RPC, and that it's the network you expect:

Check the chain ID
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:

Check the chain ID with a Console API key
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

EndpointFrom an allowlisted IPWith a Console API key or token
JSON-RPC over HTTPS, and the Store APIYesYes
JSON-RPC over WebSocketYesNo
Archive RPCYesNo
Second full nodeYesNo
  • Console credentials. Send a registered Console API key as x-api-key: lzk_…, or a Console token as Authorization: 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:

No browser wallet found. Install one such as Rabby or MetaMask, then reload this page to add Zero Testnet in one click.

Or add a custom network with these values:

FieldValue
Network nameZero Testnet
RPC URLhttps://testnet.zero.layerzero.network/
Chain ID43002
Currency symbolZRO
Block explorer URLhttps://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.

Switch to the Zero testnet, adding it if needed
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.