@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / chains / somniaMainnet

Variable: somniaMainnet

const somniaMainnet: object

Defined in: packages/sdk/src/chains/definitions/somniaMainnet.ts:11

Somnia mainnet (chain id 5031) — the production network. Native token is SOMI; blocks land roughly every 100 ms.

Same content as viem's somnia, under the name the runbooks use.

Type Declaration

blockExplorers

blockExplorers: object

Collection of block explorers

blockExplorers.default

readonly default: object

blockExplorers.default.name

readonly name: "Somnia Explorer" = "Somnia Explorer"

blockExplorers.default.url

readonly url: "https://explorer.somnia.network" = "https://explorer.somnia.network"

blockExplorers.default.apiUrl

readonly apiUrl: "https://explorer.somnia.network/api" = "https://explorer.somnia.network/api"

blockTime

blockTime: 100

Block time in milliseconds.

contracts

contracts: object

Collection of contracts

contracts.multicall3

readonly multicall3: object

contracts.multicall3.address

readonly address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11" = "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11"

contracts.multicall3.blockCreated

readonly blockCreated: 38516341 = 38516341

id

id: 5031

ID in number form

name

name: "Somnia"

Human-readable name

nativeCurrency

nativeCurrency: object

Currency used by chain

nativeCurrency.name

readonly name: "Somnia" = "Somnia"

nativeCurrency.symbol

readonly symbol: "SOMI" = "SOMI"

nativeCurrency.decimals

readonly decimals: 18 = 18

rpcUrls

rpcUrls: object

Collection of RPC endpoints

rpcUrls.default

readonly default: object

rpcUrls.default.http

readonly http: readonly ["https://api.infra.mainnet.somnia.network"]

rpcUrls.default.webSocket

readonly webSocket: readonly ["wss://api.infra.mainnet.somnia.network/ws"]

testnet

testnet: false

Flag for test networks