@somnia-chain/markets-sdk / chains / somniaChains
Variable: somniaChains
constsomniaChains: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
readonly5031:object=somniaMainnet
5031.blockExplorers
blockExplorers:
object
Collection of block explorers
5031.blockExplorers.default
readonlydefault:object
5031.blockExplorers.default.name
readonlyname:"Somnia Explorer"="Somnia Explorer"
5031.blockExplorers.default.url
readonlyurl:"https://explorer.somnia.network"="https://explorer.somnia.network"
5031.blockExplorers.default.apiUrl
readonlyapiUrl:"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
readonlymulticall3:object
5031.contracts.multicall3.address
readonlyaddress:"0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11"="0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11"
5031.contracts.multicall3.blockCreated
readonlyblockCreated: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
readonlyname:"Somnia"="Somnia"
5031.nativeCurrency.symbol
readonlysymbol:"SOMI"="SOMI"
5031.nativeCurrency.decimals
readonlydecimals:18=18
5031.rpcUrls
rpcUrls:
object
Collection of RPC endpoints
5031.rpcUrls.default
readonlydefault:object
5031.rpcUrls.default.http
readonlyhttp: readonly ["https://api.infra.mainnet.somnia.network"]
5031.rpcUrls.default.webSocket
readonlywebSocket: readonly ["wss://api.infra.mainnet.somnia.network/ws"]
5031.testnet
testnet:
false
Flag for test networks
50312
readonly50312:object=somniaShannon
50312.blockExplorers
blockExplorers:
object
Collection of block explorers
50312.blockExplorers.default
readonlydefault:object
50312.blockExplorers.default.name
readonlyname:"Somnia Testnet Explorer"="Somnia Testnet Explorer"
50312.blockExplorers.default.url
readonlyurl:"https://shannon-explorer.somnia.network"="https://shannon-explorer.somnia.network"
50312.blockExplorers.default.apiUrl
readonlyapiUrl:"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
readonlymulticall3:object
50312.contracts.multicall3.address
readonlyaddress:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223"="0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223"
50312.contracts.multicall3.blockCreated
readonlyblockCreated: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
readonlyname:"STT"="STT"
50312.nativeCurrency.symbol
readonlysymbol:"STT"="STT"
50312.nativeCurrency.decimals
readonlydecimals:18=18
50312.rpcUrls
rpcUrls:
object
Collection of RPC endpoints
50312.rpcUrls.default
readonlydefault:object
50312.rpcUrls.default.http
readonlyhttp: readonly ["https://api.infra.testnet.somnia.network","https://dream-rpc.somnia.network"]
50312.rpcUrls.default.webSocket
readonlywebSocket: readonly ["wss://api.infra.testnet.somnia.network/ws","wss://dream-rpc.somnia.network/ws"]
50312.testnet
testnet:
true
Flag for test networks
50313
readonly50313: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
readonlyname:"STT"="STT"
50313.nativeCurrency.symbol
readonlysymbol:"STT"="STT"
50313.nativeCurrency.decimals
readonlydecimals:18=18
50313.rpcUrls
rpcUrls:
object
Collection of RPC endpoints
50313.rpcUrls.default
readonlydefault:object
50313.rpcUrls.default.http
readonlyhttp: readonly ["https://api.elwood.infra.testnet.somnia.network"]
50313.rpcUrls.default.webSocket
readonlywebSocket: readonly ["wss://api.elwood.infra.testnet.somnia.network/ws"]
50313.testnet
testnet:
true
Flag for test networks
50383
readonly50383:object=hidekiTestnet
50383.blockTime
blockTime:
10
Block time in milliseconds.
50383.contracts
contracts:
object
Collection of contracts
50383.contracts.multicall3
readonlymulticall3:object
50383.contracts.multicall3.address
readonlyaddress:"0x540B091b608f54E603c5dC19F6b2d955e1d2D131"="0x540B091b608f54E603c5dC19F6b2d955e1d2D131"
50383.contracts.multicall3.blockCreated
readonlyblockCreated: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
readonlyname:"STT"="STT"
50383.nativeCurrency.symbol
readonlysymbol:"STT"="STT"
50383.nativeCurrency.decimals
readonlydecimals:18=18
50383.rpcUrls
rpcUrls:
object
Collection of RPC endpoints
50383.rpcUrls.default
readonlydefault:object
50383.rpcUrls.default.http
readonlyhttp: readonly ["https://api.hideki.infra.testnet.somnia.network"]
50383.rpcUrls.default.webSocket
readonlywebSocket: readonly ["wss://api.hideki.infra.testnet.somnia.network/ws"]
50383.testnet
testnet:
true
Flag for test networks
31337
readonly31337: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
readonlyname:"STT"="STT"
31337.nativeCurrency.symbol
readonlysymbol:"STT"="STT"
31337.nativeCurrency.decimals
readonlydecimals:18=18
31337.rpcUrls
rpcUrls:
object
Collection of RPC endpoints
31337.rpcUrls.default
readonlydefault:object
31337.rpcUrls.default.http
readonlyhttp: readonly ["http://127.0.0.1:8545"]
31337.rpcUrls.default.webSocket
readonlywebSocket: readonly ["ws://127.0.0.1:8545"]
31337.testnet
testnet:
true
Flag for test networks