Overview
This guide is written for judges, developers, and contributors who want to run Prophet end-to-end on their machine against the 0G Galileo testnet.You do not need to redeploy contracts. The live deployment on 0G Galileo (chain ID 16602) is ready to use. This guide connects your local frontend and agents to those contracts.
Prerequisites
1
Node.js 20+
2
Foundry
3
Funded testnet wallet
You need a wallet with 0G testnet gas. Get tokens from faucet.0g.ai. The oracle and market-maker agents each need their own wallet (can use the same for local testing).
4
Git
1. Clone and Install
2. Environment Files
contracts/.env
agent/.env
frontendV2/.env.local
3. Run Contract Tests
0 failed. If any fail, check that Foundry is up to date with foundryup.
Run with verbose output for a specific test:
4. Run 0G Diagnostics
Before starting agents, verify your 0G connections are working.Test 0G Storage
- Uploads a small JSON blob to 0G Storage via the turbo indexer
- Downloads it back and verifies the content matches (checksum check)
- Reports upload/download latency
Test 0G Compute
- Initializes the 0G Serving Broker with your wallet
- Verifies TEE attestation for the configured provider
- Sends a simple test prompt and checks the response is valid JSON
- Reports inference latency
Inference on the testnet Qwen model typically takes 45–90 seconds. This is normal — the testnet provider can be under load. Production uses DeepSeek V3 which is faster and more reliable.
5. Start the Frontend
6. Start the Agents
In a separate terminal:7. Get Test Tokens
You need two types of tokens to interact with Prophet:0G Gas (for transaction fees)
Go to faucet.0g.ai, connect your wallet, and request 0G testnet tokens. These are used for gas on every transaction.Mock USDT (for trading)
Navigate to the/faucet page in the Prophet frontend:
0xc2B0D2A7e858F13B349843fF87dBF4EBF9227F49 on 0G Galileo.
What’s Running
After completing this guide, you have:Next Steps
Connect Your Wallet
Add 0G Galileo to MetaMask and connect to the app
Understand the AMM
Learn how YES/NO share pricing works
Deploy Contracts
Full deployment guide for a fresh environment
0G Integration Details
Deep dive into how 0G Chain, Compute, and Storage are used