Somnia RPC Endpoint

Fast, flat-rate Somnia RPC node provider — free tier, no KYC, HTTP & WebSocket.

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

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

HTTP Endpoint

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

WebSocket Endpoint

wss://rpc.swiftnodes.io/ws/somnia?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

Features of SwiftNodes for Somnia

  • Multiple load-balanced upstream nodes for high availability
  • Health-checked every 60 seconds 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 75+ supported chains, including Somnia

Rate Limits

PlanPriceHTTP req/sWS msg/s
Free$0/mo21
Starter$49/mo5025
Growth$89/mo15075
Scale$149/mo300150
Pro$249/mo500250

Ready to start building on Somnia? Connect your wallet and get a free API key in 30 seconds. No email or KYC required.