> 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.md).

# Chains

RainbowKit-compatible chain configurations for Seismic networks

`seismic-react` provides pre-configured chain objects compatible with RainbowKit's `getDefaultConfig`. Each chain wraps a [`seismic-viem`](https://docs.seismic.systems/clients/typescript/viem.md) chain definition with RainbowKit metadata (icon, etc.).

## Import

```typescript
import {
  seismicTestnet,
  sanvil,
  localSeismicDevnet,
  createSeismicDevnet,
} from "seismic-react/rainbowkit";
```

## Available Chains

| Chain                                                                                                  | Export                  | Chain ID | Description                      |
| ------------------------------------------------------------------------------------------------------ | ----------------------- | -------- | -------------------------------- |
| [Seismic Testnet](https://docs.seismic.systems/clients/typescript/react/chains/seismic-testnet.md)     | `seismicTestnet`        | `5124`   | Public testnet                   |
| [Sanvil](https://docs.seismic.systems/clients/typescript/react/chains/sanvil.md)                       | `sanvil`                | `31337`  | Local Sanvil dev node            |
| [Local Devnet](https://docs.seismic.systems/clients/typescript/react/chains/sanvil.md)                 | `localSeismicDevnet`    | `5124`   | Local seismic-reth `--dev`       |
| [Custom Devnet](https://docs.seismic.systems/clients/typescript/react/chains/create-seismic-devnet.md) | `createSeismicDevnet()` | `5124`   | Factory for custom chain configs |

## Usage with RainbowKit

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

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

## Choosing a Chain

```
Are you deploying to the public testnet?
  -> Use seismicTestnet

Are you developing locally with Sanvil?
  -> Use sanvil

Are you running a local seismic-reth node in --dev mode?
  -> Use localSeismicDevnet

Are you connecting to a custom or self-hosted Seismic node?
  -> Use createSeismicDevnet()
```

## Relationship to seismic-viem Chains

Each chain export is a thin wrapper around the corresponding `seismic-viem` chain object. The wrapper adds RainbowKit-specific metadata (such as `iconUrl`) while preserving all underlying chain properties -- chain ID, RPC URLs, native currency, block explorers, and transaction formatters.

{% hint style="info" %}
If you are not using RainbowKit, you can use the `seismic-viem` chain objects directly with wagmi.
{% endhint %}

## Pages

| Page                                                                                                         | Description                                      |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
| [Seismic Testnet](https://docs.seismic.systems/clients/typescript/react/chains/seismic-testnet.md)           | Public testnet configuration and usage           |
| [Sanvil](https://docs.seismic.systems/clients/typescript/react/chains/sanvil.md)                             | Local development chains (Sanvil + seismic-reth) |
| [createSeismicDevnet](https://docs.seismic.systems/clients/typescript/react/chains/create-seismic-devnet.md) | Factory for custom chain configurations          |

## See Also

* [ShieldedWalletProvider](https://docs.seismic.systems/clients/typescript/react/shielded-wallet-provider.md) - Provider that accepts chain config
* [Wallet Guides](https://docs.seismic.systems/clients/typescript/react/wallet-guides.md) - RainbowKit and wallet setup guides
* [Installation](https://docs.seismic.systems/clients/typescript/react/installation.md) - Package setup


---

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