> 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

`seismic-react` provides pre-configured chain objects compatible with RainbowKit's `getDefaultConfig`. Each chain wraps a [`seismic-viem`](/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](/clients/typescript/react/chains/seismic-testnet.md)     | `seismicTestnet`        | `5124`   | Public testnet                   |
| [Sanvil](/clients/typescript/react/chains/sanvil.md)                       | `sanvil`                | `31337`  | Local Sanvil dev node            |
| [Local Devnet](/clients/typescript/react/chains/sanvil.md)                 | `localSeismicDevnet`    | `5124`   | Local seismic-reth `--dev`       |
| [Custom Devnet](/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](/clients/typescript/react/chains/seismic-testnet.md)           | Public testnet configuration and usage           |
| [Sanvil](/clients/typescript/react/chains/sanvil.md)                             | Local development chains (Sanvil + seismic-reth) |
| [createSeismicDevnet](/clients/typescript/react/chains/create-seismic-devnet.md) | Factory for custom chain configurations          |

## See Also

* [ShieldedWalletProvider](/clients/typescript/react/shielded-wallet-provider.md) - Provider that accepts chain config
* [Wallet Guides](/clients/typescript/react/wallet-guides.md) - RainbowKit and wallet setup guides
* [Installation](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
