Chain
EVM-compatible L1, tuned for AI apps.
Built on CometBFT with sub-second finality and up to 11K TPS per shard. Deploy Solidity contracts with the toolchains you already know, Hardhat and Foundry.
Add to wallet
§ 01 · Network Config
The public endpoints below are intended for development. For production traffic, use a third-party provider listed below.
Testnet
0G-Galileo-Testnet
Mainnet
0G Mainnet
§ 02 · Deploy a contract
0G Chain runs the EVM. Any Solidity contract compiled for the cancun hard fork with Solidity 0.8.19 will deploy unchanged.
Recommended
Start from the 0G Deployment Scripts
Ready-to-run Hardhat and Foundry deployment scripts with verified configs for Galileo testnet and mainnet, plus an example contract. Clone, set a private key, and deploy.
Or follow the 6 steps below to wire it up yourself.
Add 0G Chain to your wallet
# use the one-click buttons above, or add manually in MetaMask / Rabby
# Testnet chainId 16602, Mainnet chainId 16661
# currency 0G, decimals 18Get tokens
# testnet: claim 0.1 0G per day from faucet.0g.ai
# mainnet: bridge or buy 0G and send to your walletInstall your framework
# Hardhatnpm install --save-dev hardhat# or Foundry (one-time)curl -L https://foundry.paradigm.xyz | bashfoundryup
Configure the network
// hardhat.config.tsexport default {solidity: {version: "0.8.19",settings: {evmVersion: "cancun",optimizer: { enabled: true, runs: 200 },},},networks: {testnet: {url: "https://evmrpc-testnet.0g.ai",chainId: 16602,accounts: [process.env.PRIVATE_KEY!],},mainnet: {url: "https://evmrpc.0g.ai",chainId: 16661,accounts: [process.env.PRIVATE_KEY!],},},}
Deploy
# Hardhatnpx hardhat run scripts/deploy.ts --network testnet# Foundryforge create --rpc-url https://evmrpc-testnet.0g.ai \--private-key $PRIVATE_KEY \--evm-version cancun \src/MyToken.sol:MyToken
Verify on Chain Scan
# open chainscan-galileo.0g.ai (testnet) or chainscan.0g.ai (mainnet)
# paste your contract address and submit source for verificationGotcha
Pin your toolchain to evmVersion: cancun and Solidity 0.8.19. Newer EVM versions may not verify on the explorer.
§ 03 · Deep dive
§ 04 · Built on Chain
View showcase →Shawarma Orchestrate
Multi-agent AI prediction platform where specialized agents collaborate via 0G Compute to research questions, reach consensus, and execute on-chain Uniswap trades.
ETHGlobal Cannes 2026Alpha Dawg
Autonomous multi-agent swarm that hires specialists via nanopayments, runs TEE-sealed adversarial debate on 0G Compute, and stores a verifiable cycle DAG on 0G Storage.
ETHGlobal Cannes 2026Don't Get Drained
Agentic firewall marketplace where security researchers publish AI guard agents on 0G that review DeFi transactions before execution using 0G Compute and 0G Storage.
ETHGlobal Cannes 2026Croisette.cc
Agentic investment platform using ZeroClaw agents with 0G Compute LLMs for 24/7 portfolio building and management, with prompt integrity verified on 0G Storage.
ETHGlobal Cannes 2026CaaS
Claw-as-a-Service platform for deploying World ID-verified autonomous AI agents as ERC-7857 Agentic IDs on 0G Chain with 0G Storage memory and WLD-powered x402 micropayments.
ETHGlobal Cannes 2026Finoma
AI-assisted prediction markets for flight and airport outcomes, settled on 0G Chain with FlightRadar24 data and 0G Compute inference.
ETHGlobal Cannes 2026