Supports both Testnet & Mainnet
docker pull suntani/vlayer-container:latestdocker run -it --name vlayer-dev suntani/vlayer-container:latestInside the container:
vlayer init simple --template simple
cd simple
forge buildcd vlayer
bun installnano .env.testnet.localExample content:
VLAYER_API_TOKEN=eyJ... # Get from https://dashboard.vlayer.xyz (testnet mode)
EXAMPLES_TEST_PRIVATE_KEY=0x... # Your testnet wallet private key
CHAIN_NAME=optimismSepolia
JSON_RPC_URL=https://sepolia.optimism.iobun installbun run prove:testnetnano .env.mainnet.localExample content:
VLAYER_API_TOKEN=eyJ... # Get from dashboard (production mode)
EXAMPLES_TEST_PRIVATE_KEY=0x... # Your wallet private key with ETH
CHAIN_NAME=optimism
JSON_RPC_URL=https://mainnet.optimism.iobun run prove:mainnetexitdocker stop vlayer-devdocker start -ai vlayer-devwget -O testnet-web-proof.sh https://raw.githubusercontent.com/choir94/Vlayer/refs/heads/main/testnet-web-proof.sh && chmod +x testnet-web-proof.sh && ./testnet-web-proof.shwget -O testnet-email-proof.sh https://raw.githubusercontent.com/choir94/Vlayer/refs/heads/main/testnet-email-proof.sh && chmod +x testnet-email-proof.sh && ./testnet-email-proof.sh- https://dashboard.vlayer.xyz
- (https://book.vlayer.xyz/getting-started/installation.html)
- https://t.me/airdrop_node
This tutorial is suitable for testnet/mainnet proving, zk app exploration, and Vlayer development without local setup.