@sei-js is open source. Contribute at github.com/sei-protocol/sei-js.
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
Access Sei’s precompiled contracts directly from your EVM applications. Interact with native blockchain functions for staking, governance, and more.@sei-js/create-sei
Bootstrap new Sei projects with pre-configured templates and tooling. Scaffold production-ready dApps in seconds.@sei-js/sei-global-wallet
Connect to any Sei-compatible wallet using the EIP-6963 standard. Provides a cross-application embedded wallet experience with social login.@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.@sei-js/registry
Chain constants, RPC endpoints, token metadata, gas parameters, and wallet info — a typed reference for Sei network configuration.@sei-js/mcp-server
Teach Claude, Cursor, Windsurf, or any LLM to interact with the Sei blockchain through the Model Context Protocol.Quick Start
Generate a new Sei application using the CLI tool:Examples
End-to-end code examples using viem and ethers with Sei:viem Quickstart
Read chain data, send transactions, and interact with contracts in a Node.js script or backend.
ethers v6 Quickstart
The same patterns using ethers v6, including browser provider and event listening.
Wagmi + React
Connect wallets, read balances, and write contracts in a React app using Wagmi hooks.
ERC-20 Interaction
Read metadata, check balances, transfer tokens, approve spenders, and query transfer history.
ERC-721 Interaction
Check ownership, transfer NFTs, manage approvals, and watch transfer events.
ERC-1155 Interaction
Batch balance queries, single and batch transfers, operator approvals, and event watching.
Multicall
Batch multiple contract reads into a single RPC call with Multicall3 and viem/ethers/wagmi.
Pointer Contracts
Look up CW20/CW721/native pointer addresses and interact with CosmWasm tokens via ERC interfaces.
Sei Precompiles
Native balances, staking, rewards, and governance voting from JavaScript.
Deploy and Verify
Deploy contracts with viem, ethers, Foundry, or Hardhat and verify on Seiscan via Sourcify.
Transaction Lifecycle
Send transactions, wait for receipts, and decode event logs.
Error Handling
Decode reverts, handle wallet rejections, and retry transient RPC failures.
Community & Support
- Discord — Join the Sei developer community
- GitHub Issues — Report bugs and request features