# Connect a wallet

> Add Somnia to an EVM wallet such as MetaMask.

Somnia is EVM-compatible, so any EVM wallet works. Add the network once, then switch to it like any other chain.

## Add the network

1. Open your wallet's network settings and choose **Add a network manually**.
2. Enter the values for mainnet (or testnet) from [Network info](./network-info).
3. Save, then switch to **Somnia Mainnet** (or **Somnia Testnet**).

| Field | Mainnet | Testnet |
| --- | --- | --- |
| Chain ID | `5031` | `50312` |
| Currency symbol | SOMI | STT |
| RPC URL | `https://api.infra.mainnet.somnia.network/` | `https://api.infra.testnet.somnia.network/` |
| Explorer | `https://explorer.somnia.network` | `https://explorer.testnet.somnia.network` |

## Get testnet tokens

Request STT from the [testnet faucet](https://explorer.testnet.somnia.network/faucet) to pay for gas while you build.

## Trade without a prompt per order

Venues on Somnia can use session keys and smart accounts so users approve once and then act without a wallet prompt for each order. The [Somnia Explorer](./explorer) manages smart accounts, session keys and gas sponsorship.

---

Every page is also Markdown: append `.md` to its URL, or ask for `text/markdown`. Found something wrong, missing or confusing in these docs? Tell us: `POST /api/feedback` on this site with JSON `{"message": "…", "context": "what you were doing and what happened", "page": "…"}`, or a plain-text body. `GET /api/feedback` gives the JSON Schema. The team reads every one.
