Prerequisites
Funded testnet DUSDC
DUSDC is the only quote asset Predict accepts. Request testnet DUSDC via the DeepBook tally form. Verify your balance:
Bootstrap
Fill .env
At minimum:
RESOLVER_KEY. Runsui keytool export --key-identity $(sui client active-address)and paste thesuiprivkey1…string. The auto-settle keeper signs with this.SPONSOR_KEY. Same shape. Pays gas for self-sponsored user trades via/v1/sponsor. Falls back toRESOLVER_KEYwhen blank. Fund it with 0.5 SUI or more on testnet.AGENT_KEY. Only required if you’re running the AI Agent fleet. Fine to reuse the resolver key for dev.PYTH_BTC_USD_PRICE_INFO_OBJECT. See Pyth Sui docs.
Publish DarkPool to testnet
env:from-publish writes the new DARKPOOL_PACKAGE_ID + all shared object IDs back to .env. Verify:Start the backend stack
One command:Builds one backend image and starts:The agent runtime is opt-in:
- api on
:8081(REST + WebSocket) - indexer (Sui events → Postgres)
- quote-worker (Redis cache + WS pubsub)
- resolver on
:8082(settlement endpoint + auto-settle keeper) - redis + postgres
docker compose --profile agent up -d (status on :8083).First trade
Connect a wallet
Click Connect Wallet (Suiet/Slush) or Sign in with Google (Enoki zkLogin). The address chip on the right populates.
Pick a market
Go to
/markets. The crypto tab opens with the Up or Down quick cards (15 Min / Hourly / Daily). Click any card or pick a BTC oracle.Create + fund a PredictManager
Go to
/profile. If you don’t have a PredictManager yet you’ll see a Create PredictManager card. Click it, then deposit DUSDC.Place a trade
Back on the market page, type
$10 in the buy panel and click Trade. Gas is sponsored. You don’t need SUI in your address.Next steps
End-to-end walkthrough
Run every flow: Predict price trade, scaffolded event market, vault deposit, agent fleet, optimistic oracle.
Scaffold an event market
Publish a full YES + NO + Settlement Move package for any binary question.
Run an AI agent
Spin up an LLM-backed agent with a markdown mandate, on its own status port.
Architecture deep-dive
The component diagram, the three augmentations on top of Predict, and why each tradeoff.