Skip to content

choir94/Vlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

VLAYER DOCKER TUTORIAL (PREBUILT IMAGE)

Supports both Testnet & Mainnet

Ubuntu 24

1. Pull Docker Image

docker pull suntani/vlayer-container:latest

2. Run the Container

docker run -it --name vlayer-dev suntani/vlayer-container:latest

3. Initialize Vlayer Project

Inside the container:

vlayer init simple --template simple
cd simple
forge build
cd vlayer
bun install

4. TESTNET SETUP

a. Create .env.testnet.local

nano .env.testnet.local

Example 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.io

b. Install Dependencies

bun install

c. Run Prove on Testnet

bun run prove:testnet

5. MAINNET SETUP

a. Create .env.mainnet.local

nano .env.mainnet.local

Example 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.io

b. Run Prove on Mainnet

bun run prove:mainnet

6. Exit & Restart Container

Exit the container

exit

Stop the container

docker stop vlayer-dev

Restart the container

docker start -ai vlayer-dev

Testnet web proof (One click)

wget -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.sh

Testnet email proof (One click)

wget -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

References


This tutorial is suitable for testnet/mainnet proving, zk app exploration, and Vlayer development without local setup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages