Get connected
Networks, wallets and testnet funds: everything you need before your first transaction.
Welcome to the Somnia docs
Somnia runs order books, matching, oracles, agents and settlement as smart contracts on one fast EVM chain. Pick a path below and we’ll take you to the right page, or hand these docs to your coding agent and build together.
Know what you’re after? Press ⌘K to search every page.
I want to…
Six common starting points, each with the pages that get you there.
Networks, wallets and testnet funds: everything you need before your first transaction.
Deploy with the tools you already use, then test, verify and harden it for mainnet.
Onchain order books for spot, perpetuals and event contracts, with APIs to automate them.
Put your own markets on the shared engine, with your brand, your fees and sponsored gas.
Prices, outcomes and live events your contracts can read and react to.
Consensus-validated compute: LLM calls, web parsing and API requests from a contract.
Agent-first docs
Every page is written so a coding agent can follow it. Pick a goal, paste the prompt into Claude, and it reads the whole corpus and builds with you on testnet.
A bot streaming a live order book and placing orders on testnet, fills visible in the explorer.
Read https://docs.somnia.network/llms-full.txt, then build me a trading bot on Somnia testnet: pick a live market, stream its order book, place and cancel small post-only orders, and show my fills from the explorer API. Set up keys and testnet funds the way the docs describe, and ask me before anything touches mainnet.
The platform
The same sections as the Somnia Explorer, each with a page for every product in it. They’re in the sidebar too.
The CLI, MCP server and Venue Kit, every API and SDK, and the developer guide.
The Global L1 and Regional Subchains: networks, RPCs, the explorer, bridge and accounts.
Spot, perpetual and event markets on one onchain matching engine.
Prices and real-world outcomes, delivered onchain with provenance.
Consensus-validated compute for smart contracts, from LLM inference to price oracles.
USDso, credit and privacy: what markets settle and borrow against.
Trade the outcome of real-world events, settled by the Somnia Oracle.
How the chain works and why, for reading rather than pasting.
Bring capital or infrastructure rather than code.