@somnia-chain/markets-sdk


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

Variable: somniaChains

const somniaChains: object

Defined in: packages/sdk/src/chains/index.ts:82

Every Somnia network this module ships, keyed by chain id — the lookup table behind getSomniaChain. Iterate it to build a network switcher; index it when you already know the id is one of ours.

Type Declaration

5031

readonly 5031: object = somniaMainnet

5031.blockExplorers

blockExplorers: object

Collection of block explorers

5031.blockExplorers.default

readonly default: object

5031.blockExplorers.default.name

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

5031.blockExplorers.default.url

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

5031.blockExplorers.default.apiUrl

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

5031.blockTime

blockTime: 100

Block time in milliseconds.

5031.contracts

contracts: object

Collection of contracts

5031.contracts.multicall3

readonly multicall3: object

5031.contracts.multicall3.address

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

5031.contracts.multicall3.blockCreated

readonly blockCreated: 38516341 = 38516341

5031.id

id: 5031

ID in number form

5031.name

name: "Somnia"

Human-readable name

5031.nativeCurrency

nativeCurrency: object

Currency used by chain

5031.nativeCurrency.name

readonly name: "Somnia" = "Somnia"

5031.nativeCurrency.symbol

readonly symbol: "SOMI" = "SOMI"

5031.nativeCurrency.decimals

readonly decimals: 18 = 18

5031.rpcUrls

rpcUrls: object

Collection of RPC endpoints

5031.rpcUrls.default

readonly default: object

5031.rpcUrls.default.http

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

5031.rpcUrls.default.webSocket

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

5031.testnet

testnet: false

Flag for test networks

50312

readonly 50312: object = somniaShannon

50312.blockExplorers

blockExplorers: object

Collection of block explorers

50312.blockExplorers.default

readonly default: object

50312.blockExplorers.default.name

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

50312.blockExplorers.default.url

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

50312.blockExplorers.default.apiUrl

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

50312.blockTime

blockTime: 100

Block time in milliseconds.

50312.contracts

contracts: object

Collection of contracts

50312.contracts.multicall3

readonly multicall3: object

50312.contracts.multicall3.address

readonly address: "0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223" = "0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223"

50312.contracts.multicall3.blockCreated

readonly blockCreated: 71314235 = 71314235

50312.id

id: 50312

ID in number form

50312.name

name: "Somnia Testnet"

Human-readable name

50312.nativeCurrency

nativeCurrency: object

Currency used by chain

50312.nativeCurrency.name

readonly name: "STT" = "STT"

50312.nativeCurrency.symbol

readonly symbol: "STT" = "STT"

50312.nativeCurrency.decimals

readonly decimals: 18 = 18

50312.rpcUrls

rpcUrls: object

Collection of RPC endpoints

50312.rpcUrls.default

readonly default: object

50312.rpcUrls.default.http

readonly http: readonly ["https://api.infra.testnet.somnia.network", "https://dream-rpc.somnia.network"]

50312.rpcUrls.default.webSocket

readonly webSocket: readonly ["wss://api.infra.testnet.somnia.network/ws", "wss://dream-rpc.somnia.network/ws"]

50312.testnet

testnet: true

Flag for test networks

50313

readonly 50313: object = somniaElwood

50313.blockTime

blockTime: 100

Block time in milliseconds.

50313.id

id: 50313

ID in number form

50313.name

name: "Somnia Elwood Testnet"

Human-readable name

50313.nativeCurrency

nativeCurrency: object

Currency used by chain

50313.nativeCurrency.name

readonly name: "STT" = "STT"

50313.nativeCurrency.symbol

readonly symbol: "STT" = "STT"

50313.nativeCurrency.decimals

readonly decimals: 18 = 18

50313.rpcUrls

rpcUrls: object

Collection of RPC endpoints

50313.rpcUrls.default

readonly default: object

50313.rpcUrls.default.http

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

50313.rpcUrls.default.webSocket

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

50313.testnet

testnet: true

Flag for test networks

50383

readonly 50383: object = hidekiTestnet

50383.blockTime

blockTime: 10

Block time in milliseconds.

50383.contracts

contracts: object

Collection of contracts

50383.contracts.multicall3

readonly multicall3: object

50383.contracts.multicall3.address

readonly address: "0x540B091b608f54E603c5dC19F6b2d955e1d2D131" = "0x540B091b608f54E603c5dC19F6b2d955e1d2D131"

50383.contracts.multicall3.blockCreated

readonly blockCreated: 265712387 = 265712387

50383.id

id: 50383

ID in number form

50383.name

name: "Hideki Testnet"

Human-readable name

50383.nativeCurrency

nativeCurrency: object

Currency used by chain

50383.nativeCurrency.name

readonly name: "STT" = "STT"

50383.nativeCurrency.symbol

readonly symbol: "STT" = "STT"

50383.nativeCurrency.decimals

readonly decimals: 18 = 18

50383.rpcUrls

rpcUrls: object

Collection of RPC endpoints

50383.rpcUrls.default

readonly default: object

50383.rpcUrls.default.http

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

50383.rpcUrls.default.webSocket

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

50383.testnet

testnet: true

Flag for test networks

31337

readonly 31337: object = somniaLocal

31337.id

id: 31337

ID in number form

31337.name

name: "Somnia Local"

Human-readable name

31337.nativeCurrency

nativeCurrency: object

Currency used by chain

31337.nativeCurrency.name

readonly name: "STT" = "STT"

31337.nativeCurrency.symbol

readonly symbol: "STT" = "STT"

31337.nativeCurrency.decimals

readonly decimals: 18 = 18

31337.rpcUrls

rpcUrls: object

Collection of RPC endpoints

31337.rpcUrls.default

readonly default: object

31337.rpcUrls.default.http

readonly http: readonly ["http://127.0.0.1:8545"]

31337.rpcUrls.default.webSocket

readonly webSocket: readonly ["ws://127.0.0.1:8545"]

31337.testnet

testnet: true

Flag for test networks