gearCreate 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

Parameter
Type
Required
Description

nodeHost

string

Yes

Hostname for the node (e.g. gcp-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: 5124

  • Name: Seismic

  • Native Currency: ETH (18 decimals)

  • RPC (HTTPS): https://<nodeHost>/rpc

  • RPC (WSS): wss://<nodeHost>/ws

  • Seismic transaction formatters

Usage

Basic

With RainbowKit

With wagmi Config

With Explorer URL

Notes

  • The nodeHost parameter 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 createSeismicDevnet from seismic-viem and wraps the result with RainbowKit metadata.

See Also

Last updated