> For the complete documentation index, see [llms.txt](https://docs.seismic.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seismic.systems/clients/typescript/react/chains/create-seismic-devnet.md). Agents can also search and read this documentation through its [MCP server](https://docs.seismic.systems/~gitbook/mcp).

# 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

```typescript
import { createSeismicDevnet } from "seismic-react/rainbowkit";
```

## Parameters

| Parameter     | Type     | Required | Description                                              |
| ------------- | -------- | -------- | -------------------------------------------------------- |
| `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**: `5124`
* **Name**: `Seismic`
* **Native Currency**: ETH (18 decimals)
* **RPC (HTTPS)**: `https://<nodeHost>/rpc`
* **RPC (WSS)**: `wss://<nodeHost>/ws`
* **Seismic transaction formatters**

## Usage

### Basic

```typescript
import { createSeismicDevnet } from "seismic-react/rainbowkit";

const myDevnet = createSeismicDevnet({
  nodeHost: "my-node.example.com",
});
// RPC: https://my-node.example.com/rpc
// WSS: wss://my-node.example.com/ws
```

### With RainbowKit

```typescript
import { getDefaultConfig } from "@rainbow-me/rainbowkit";
import { createSeismicDevnet } from "seismic-react/rainbowkit";

const myChain = createSeismicDevnet({
  nodeHost: "my-node.example.com",
});

const config = getDefaultConfig({
  appName: "My App",
  projectId: "YOUR_PROJECT_ID",
  chains: [myChain],
});
```

### With wagmi Config

```typescript
import { http, createConfig } from "wagmi";
import { createSeismicDevnet } from "seismic-react/rainbowkit";

const myChain = createSeismicDevnet({
  nodeHost: "my-node.example.com",
});

const config = createConfig({
  chains: [myChain],
  transports: {
    [myChain.id]: http(),
  },
});
```

### With Explorer URL

```typescript
const myChain = createSeismicDevnet({
  nodeHost: "my-node.example.com",
  explorerUrl: "https://explorer.example.com",
});
```

## 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

* [Chains Overview](https://docs.seismic.systems/clients/typescript/react/chains.md) - All supported chains
* [Seismic Testnet](https://docs.seismic.systems/clients/typescript/react/chains/seismic-testnet.md) - Public testnet configuration
* [Sanvil](https://docs.seismic.systems/clients/typescript/react/chains/sanvil.md) - Local development chains
* [Wallet Guides](https://docs.seismic.systems/clients/typescript/react/wallet-guides.md) - RainbowKit setup guides


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.seismic.systems/clients/typescript/react/chains/create-seismic-devnet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
