seismic-react / createSeismicDevnet
Function: createSeismicDevnet()
function createSeismicDevnet(params): RainbowKitChain
Defined in: packages/seismic-react/src/config/chain.ts:85
Creates a Seismic development network chain configuration.
Example
// Create using node number
const devnet1 = createSeismicDevnet({ node: 1 })
// Create using custom host
const devnet2 = createSeismicDevnet({ nodeHost: 'custom.node.example.com' })
Parameters
params
CreateSeismicDevnetParams
The parameters for creating a Seismic devnet.
node
(number, optional) - The node number for the devnet. If provided withoutnodeHost
, the hostname will be generated asnode-{node}.seismicdev.net
.nodeHost
(string, optional) - The direct hostname for the node. Required ifnode
is not provided.explorerUrl
(string, optional) - Custom block explorer URL. If not provided andnode
exists, defaults tohttps://explorer-{node}.seismicdev.net
.
Returns
RainbowKitChain
A chain configuration object containing:
- Chain ID: 5124.
- Network name: 'Seismic'.
- Native ETH currency configuration.
- RPC URLs (HTTP and WebSocket endpoints).
- Block explorer configuration (if applicable).
- Seismic-specific transaction formatters.
Throws
Throws if neither node number nor nodeHost is provided.