Somnia RPC Endpoint

Flat-rate Somnia RPC provider and Somnia RPC node access: free tier, no KYC, HTTP & WebSocket. Somnia mainnet chain ID 5031.

Somnia mainnet RPC URL: https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY
WebSocket: wss://rpc.swiftnodes.io/ws/somnia?key=YOUR_API_KEY

Get your free Somnia API key

250,000 requests/month · 20 req/s · all chains · no card · no KYC

Get my free API key →

Somnia is an EVM-compatible Layer 1 optimised for very high transaction volume with sub-second finality, using a MultiStream consensus design and a purpose-built state database called IceDB.

Network: Somnia
Type: EVM
Chain ID: 5031
Slug: somnia
Native token: SOMI (Somnia)
Finality: Sub-second
Mainnet: September 2025
Category: Layer 1

Somnia on the SwiftNodes fleet, right now

Status: online
Latency: 41 ms
Latest block: 455,601,094
WebSocket: available
Uptime, last 30 days: 100.00%

7 of 12 probed RPC methods supported (archive, batch, debug_traceCall, eth_getBlockReceipts). The gaps are listed per chain in the method support matrix.

Status and latency from our health checks, refreshed about every 5 minutes. Uptime history. Method support probed automatically on 2026-11-01. Network status

Somnia developer facts, measured

Block time:
~100 ms (average of the last 1,000 blocks)
Finality:
the latest block is already reported as finalized
eth_getLogs range:
1,000-block ranges accepted; the next size we test was refused
Historical state:
readable at least 1,000,000 blocks back

Measured 2026-11-01 through this page's endpoint, re-measured weekly. Limits can differ between the upstream nodes behind it. All chains: measured chain facts.

About Somnia

Somnia was built by Improbable together with the Somnia Foundation and reached mainnet with its SOMI token in September 2025, following a testnet period that processed billions of transactions. The chain markets itself in seven figures of TPS for simple transfers, which matters mainly for applications — games, agent economies, high-frequency consumer apps — where per-transaction cost has to be near zero.

Contracts are standard Solidity against an EVM, so porting is usually a configuration change. SOMI pays gas and secures the network through staking. The engineering trade-off to be aware of is that throughput claims of this size generally assume simple transaction shapes; complex contract calls cost proportionally more, so measure your own workload rather than the headline number.

Common Use Cases on Somnia

  • On-chain games
  • AI agent transactions
  • Consumer social apps
  • High-frequency micro-payments

Somnia Mainnet RPC URL (HTTP)

https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY

Somnia WebSocket RPC URL

wss://rpc.swiftnodes.io/ws/somnia?key=YOUR_API_KEY

Somnia Testnet RPC URL

Same API key, same plan: testnet requests count like any other request.

Testnet · chain ID 50312
HTTP: https://rpc.swiftnodes.io/rpc/somnia-testnet?key=YOUR_API_KEY
WebSocket: wss://rpc.swiftnodes.io/ws/somnia-testnet?key=YOUR_API_KEY

Quick Start: Connect to Somnia

cURL

curl -X POST https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

ethers.js

import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(
  "https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY"
);

const blockNumber = await provider.getBlockNumber();
console.log("Somnia block:", blockNumber);

viem

import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY"),
});

const blockNumber = await client.getBlockNumber();

web3.py

from web3 import Web3

w3 = Web3(Web3.HTTPProvider("https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY"))
print("Somnia block:", w3.eth.block_number)

Add Somnia to MetaMask

Network Name: Somnia (SwiftNodes)
RPC URL: https://rpc.swiftnodes.io/rpc/somnia?key=YOUR_API_KEY
Chain ID: 5031
Currency Symbol: SOMI
WebSocket: wss://rpc.swiftnodes.io/ws/somnia?key=YOUR_API_KEY

Get your free Somnia API key

30 seconds, no card, no KYC. Sign in with Google, GitHub, email or a wallet. Or try the requests above now with key=demo.

Get a free key →

Features of SwiftNodes for Somnia

  • Load-balanced across multiple upstream nodes wherever a chain has more than one, with automatic failover
  • Health-checked every 2 minutes with automatic failover
  • Free tier available — no credit card or KYC required
  • Flat-rate monthly pricing with no per-request fees
  • HTTP and WebSocket support
  • One API key works across all 131 supported chains and their testnets, including Somnia

Rate Limits

PlanPriceHTTP req/sWS msg/sSign up
Free$0/mo201Start free →
Starter$49/mo7025Choose Starter →
Growth$89/mo15075Choose Growth →
Scale$149/mo300150Choose Scale →
Pro$249/mo600250Choose Pro →

Somnia guides from the blog

Related EVM chains

Explore RPC endpoints for other EVM networks on SwiftNodes:

Ready to start building on Somnia? Get a free API key in 30 seconds. No KYC, no card: sign in with Google, GitHub, email or a wallet.