Docs

Blockchain

Network info

Chain IDs, RPC endpoints and explorers for Somnia mainnet and testnet.

Global L1, mainnet

Parameter Value
Network name Somnia Mainnet
Chain ID 5031
Currency SOMI
RPC https://api.infra.mainnet.somnia.network/
WebSocket wss://api.infra.mainnet.somnia.network/ws
Explorer explorer.somnia.network

Global L1, testnet

Parameter Value
Network name Somnia Testnet
Chain ID 50312
Currency STT
RPC https://api.infra.testnet.somnia.network/
WebSocket wss://api.infra.testnet.somnia.network/ws
Explorer explorer.testnet.somnia.network
Faucet explorer.testnet.somnia.network/faucet

Tokyo Subchain, mainnet

Parameter Value
Network name Somnia Tokyo
Chain ID 50321
Currency SOMI
RPC https://api.tokyo.infra.mainnet.somnia.network
WebSocket wss://api.tokyo.infra.mainnet.somnia.network/ws
Explorer explorer.somnia.network/tokyo

On every Somnia chain, eth_getLogs accepts a range whose toBlock minus fromBlock is at most 1,000, so one query covers up to 1,001 blocks.

Tokyo Subchain, testnet

Parameter Value
Network name Somnia Tokyo Testnet
Chain ID 50383
Currency STT
RPC https://api.hideki.infra.testnet.somnia.network/
WebSocket wss://api.hideki.infra.testnet.somnia.network/ws
Explorer explorer.testnet.somnia.network/tokyo
Faucet explorer.testnet.somnia.network/tokyo/faucet

Regional subchains

Regional subchains run validators in one financial centre for lower latency and connect back to Global. Tokyo is the first on mainnet, live since 29 October 2026. See Tokyo Subchain.

From code

import { defineChain } from "viem"

export const somnia = defineChain({
  id: 5031,
  name: "Somnia Mainnet",
  nativeCurrency: { name: "Somnia", symbol: "SOMI", decimals: 18 },
  rpcUrls: { default: { http: ["https://api.infra.mainnet.somnia.network/"] } },
  blockExplorers: { default: { name: "Somnia Explorer", url: "https://explorer.somnia.network" } },
  contracts: { multicall3: { address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11" } },
})

Send feedback

Agents: POST the same to /api/feedback.