A local Next.js landing page that visualizes 0dAMM — Starknet's first propAMM — refreshing its on-chain orderbook every block. Built to make one idea tangible: per-block on-chain quote rewriting only pencils where state writes are cheap.
- Hero — live best bid / best ask + depth, polled from mainnet every ~1.5s.
- BlockStream — the last twelve Starknet blocks, with badges for
update_oraclecalls from 0D's taker and AVNU swaps that settled against 0dAMM in each block. Strip advances roughly once per block (~2.67s). - Mechanism panel — refreshes-today counter, per-update and per-day cost in STRK + USD, most recent
update_oracletx with fee and storage writes. - Cost comparison — daily $ to run this workload on Starknet vs Arbitrum vs Ethereum L1, with live gas prices and per-card formula tooltips.
- Swap feed — recent AVNU-routed swaps decoded from
Swapevents.
Pool 0x1 on Starknet mainnet:
0x020d2431ba27021073cae53dab6d818b9e15f79e13639fd4f040f5b41a617fb6
npm install
cp .env.local.example .env.local
# fill in ETHERSCAN_API_KEY (free tier is sufficient)
npm run devOpen http://localhost:3000.
| Command | What it does |
|---|---|
npm run dev |
Start the Next.js dev server. |
npm run build |
Production build. |
npm run start |
Serve the production build. |
npm run typecheck |
Run TypeScript without emit. |
- Starknet RPC — Alchemy demo (
starknet-mainnet.g.alchemy.com) primary, Lava (rpc.starknet.lava.build) fallback. No key required for low-volume use. - Ethereum gas — Etherscan gas oracle. Free-tier API key recommended (works without, but always falls back to a stale default).
- Arbitrum gas — public Arbitrum RPC (
arb1.arbitrum.io/rpc). - ETH and STRK USD price — CoinGecko free endpoint. STRK price falls back to
$0.05if the API fails.
Baseline metrics (block time 2.67s, ~32k updates/day, 0.046 STRK per update, 1,489 STRK/day, 18,805 Cairo steps, 768 L1 data gas, 9 storage slots) were measured over a 24-hour mainnet window on 2026-05-13. Everything else on the page is fetched live.
Not affiliated with 0D Capital or Starknet Foundation. Built as a non-commercial visualizer of a public on-chain primitive.