Create Seismic Devnet
Factory function for custom Seismic chain configurations
Factory function that creates a RainbowKit-compatible chain configuration for any Seismic node. Use this when the pre-configured chains (seismicTestnet, sanvil, localSeismicDevnet) do not match your node's host.
Import
import { createSeismicDevnet } from "seismic-react/rainbowkit";Parameters
nodeHost
string
Yes
Hostname for the node (e.g. testnet-1.seismictest.net)
explorerUrl
string
No
Block explorer URL
Return Type
RainbowKitChain -- a chain object compatible with RainbowKit's getDefaultConfig and wagmi's createConfig.
The returned chain has:
Chain ID:
5124Name:
SeismicNative Currency: ETH (18 decimals)
RPC (HTTPS):
https://<nodeHost>/rpcRPC (WSS):
wss://<nodeHost>/wsSeismic transaction formatters
Usage
Basic
With RainbowKit
With wagmi Config
With Explorer URL
Notes
The
nodeHostparameter should be the bare hostname without a protocol prefix or path. HTTPS and WSS URLs are constructed automatically.The Seismic icon is included automatically for display in RainbowKit's chain selector.
The underlying implementation delegates to
createSeismicDevnetfromseismic-viemand wraps the result with RainbowKit metadata.
See Also
Chains Overview - All supported chains
Seismic Testnet - Public testnet configuration
Sanvil - Local development chains
Wallet Guides - RainbowKit setup guides
Last updated

