Prerequisites

Before you begin, ensure you have the following installed:

Create your first Sei application

1

Initialize your project

Generate a new Sei application using our CLI tool:

npx @sei-js/create-sei app

Expected outcome: A new project directory with TypeScript configuration, testing setup, and example code.

The CLI will ask you to choose a template. Select “React + Wagmi” for a full-featured web application, or “Node.js” for backend/script development.

2

Navigate and install dependencies

Move into your project directory and install dependencies:

cd app
npm install

Expected outcome: All dependencies installed successfully without errors.

3

Start your development server

Launch your application in development mode:

npm run dev

Expected outcome: Development server running at http://localhost:3000 with hot reload enabled.

Your browser should automatically open to show your new Sei application with:

  • Wallet connection button
  • Network status display
  • Example interactions ready to test

What you can build

Your new Sei application comes with examples and patterns for common blockchain interactions:

Connect Wallets

Connect to any Sei-compatible wallet including MetaMask, Compass, and more using the built-in wallet integration

Check Balances

Fetch and display wallet balances for SEI and other tokens with real-time updates

Query Blockchain Data

Access blockchain information like total SEI supply using precompile contracts

Smart Contract Interactions

Deploy and interact with smart contracts including simple examples like counters and token transfers