> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sei.io/llms.txt
> Use this file to discover all available pages before exploring further.

# @sei-js SDK

> A complete TypeScript SDK for building decentralized applications on Sei Network

@sei-js is the complete TypeScript SDK for building applications on Sei Network. Whether you're creating DeFi protocols, NFT marketplaces, or blockchain games, @sei-js provides everything you need to ship faster.

**Works with your favorite tools:** Sei is fully EVM-compatible, so you can use Viem, Ethers.js, Foundry, Hardhat, and all your existing Ethereum development tools without any changes. @sei-js extends these tools with Sei-specific features like precompiled contracts and optimized wallet connections.

<Info>@sei-js is open source. Contribute at [github.com/sei-protocol/sei-js](https://github.com/sei-protocol/sei-js).</Info>

## Why @sei-js?

* **Complete TypeScript support** — Full type safety for every function, contract interaction, and API response. Catch errors at compile time.
* **Production ready** — Battle-tested components used by major applications in the Sei ecosystem.
* **Optimized for Sei** — Take advantage of Sei's fast finality, low gas, and native features.

## Package Ecosystem

### [@sei-js/precompiles](/evm/precompiles)

Access Sei's precompiled contracts directly from your EVM applications. Interact with native blockchain functions for staking, governance, and more.

```bash theme={"dark"}
npm install @sei-js/precompiles
```

### [@sei-js/create-sei](/evm/sei-js/create-sei)

Bootstrap new Sei projects with pre-configured templates and tooling. Scaffold production-ready dApps in seconds.

```bash theme={"dark"}
npx @sei-js/create-sei app
```

### [@sei-js/sei-global-wallet](/evm/sei-global-wallet)

Connect to any Sei-compatible wallet using the EIP-6963 standard. Provides a cross-application embedded wallet experience with social login.

```bash theme={"dark"}
npm install @sei-js/sei-global-wallet
```

### [@sei-js/ledger](/evm/sei-js/ledger)

Secure transaction signing with Ledger hardware wallets. Provides TypeScript helper functions for address derivation and offline Amino signing via the SEI Ledger app.

```bash theme={"dark"}
npm install @sei-js/ledger
```

### [@sei-js/registry](/evm/sei-js/registry)

Chain constants, RPC endpoints, token metadata, gas parameters, and wallet info — a typed reference for Sei network configuration.

```bash theme={"dark"}
npm install @sei-js/registry
```

### [@sei-js/mcp-server](/ai/mcp-server)

Teach Claude, Cursor, Windsurf, or any LLM to interact with the Sei blockchain through the Model Context Protocol.

```bash theme={"dark"}
npx @sei-js/mcp-server
```

## Quick Start

Generate a new Sei application using the CLI tool:

```bash theme={"dark"}
npx @sei-js/create-sei app
cd app
npm install
npm run dev
```

This creates a production-ready project with TypeScript, wallet connections, and Sei network integration out of the box. See the [Scaffold Sei](/evm/sei-js/create-sei) page for details on available templates and options.

## Examples

End-to-end code examples using viem and ethers with Sei:

<CardGroup cols={2}>
  <Card title="viem Quickstart" icon="bolt" href="/evm/evm-parity/examples/viem-quickstart">
    Read chain data, send transactions, and interact with contracts in a Node.js script or backend.
  </Card>

  <Card title="ethers v6 Quickstart" icon="bolt" href="/evm/evm-parity/examples/ethers-quickstart">
    The same patterns using ethers v6, including browser provider and event listening.
  </Card>

  <Card title="Wagmi + React" icon="react" href="/evm/evm-parity/examples/wagmi-react">
    Connect wallets, read balances, and write contracts in a React app using Wagmi hooks.
  </Card>

  <Card title="ERC-20 Interaction" icon="coins" href="/evm/evm-parity/examples/erc20">
    Read metadata, check balances, transfer tokens, approve spenders, and query transfer history.
  </Card>

  <Card title="ERC-721 Interaction" icon="image" href="/evm/evm-parity/examples/erc721">
    Check ownership, transfer NFTs, manage approvals, and watch transfer events.
  </Card>

  <Card title="ERC-1155 Interaction" icon="grid-2" href="/evm/evm-parity/examples/erc1155">
    Batch balance queries, single and batch transfers, operator approvals, and event watching.
  </Card>

  <Card title="Multicall" icon="layer-group" href="/evm/evm-parity/examples/multicall">
    Batch multiple contract reads into a single RPC call with Multicall3 and viem/ethers/wagmi.
  </Card>

  <Card title="Pointer Contracts" icon="arrow-right-arrow-left" href="/evm/evm-parity/examples/pointer-contracts">
    Look up CW20/CW721/native pointer addresses and interact with CosmWasm tokens via ERC interfaces.
  </Card>

  <Card title="Sei Precompiles" icon="hexagon-nodes" href="/evm/evm-parity/examples/sei-precompiles">
    Native balances, staking, rewards, and governance voting from JavaScript.
  </Card>

  <Card title="Deploy and Verify" icon="rocket" href="/evm/evm-parity/examples/deploy-verify">
    Deploy contracts with viem, ethers, Foundry, or Hardhat and verify on Seiscan via Sourcify.
  </Card>

  <Card title="Transaction Lifecycle" icon="arrow-progress" href="/evm/evm-parity/examples/transaction-lifecycle">
    Send transactions, wait for receipts, and decode event logs.
  </Card>

  <Card title="Error Handling" icon="triangle-exclamation" href="/evm/evm-parity/examples/error-handling">
    Decode reverts, handle wallet rejections, and retry transient RPC failures.
  </Card>
</CardGroup>

## Community & Support

* [Discord](https://discord.gg/sei) — Join the Sei developer community
* [GitHub Issues](https://github.com/sei-protocol/sei-js/issues) — Report bugs and request features
