Skip to main content

Overview

The @sei-js/registry package provides fully typed TypeScript constants sourced from the official Sei chain registry and the community asset list. Use it to access chain metadata, network endpoints, token lists, IBC channel info, and gas configuration without hardcoding values.

Key Exports

ExportDescription
CHAIN_IDSMainnet, testnet, and devnet chain ID strings
CHAIN_INFOCore chain metadata (bech32 prefix, slip44, fee token, supported wallets)
NETWORKSNetwork configs with RPC, REST, gRPC, EVM, and WebSocket endpoints
TOKEN_LISTCommunity-maintained token list per network
IBC_INFOIBC channel configurations per network
GAS_INFOGas denomination and pricing per network

Installation

npm install @sei-js/registry

Quick Example

import { CHAIN_IDS, NETWORKS, TOKEN_LIST } from "@sei-js/registry";

// Get the mainnet chain ID
console.log(CHAIN_IDS.mainnet); // "pacific-1"

// Access mainnet RPC endpoints
const mainnet = NETWORKS["pacific-1"];
console.log(mainnet.rpc[0].url);

// Find the SEI token on mainnet
const sei = TOKEN_LIST["pacific-1"].find((t) => t.symbol === "sei");
console.log(sei?.name); // "Sei"