@sei-js/registry
Version:
TypeScript library for Sei chain constants and assets
35 lines (34 loc) • 1.43 kB
TypeScript
/**
* Represents the essential information about an official Sei network.
*/
export interface ChainInfo {
/** The name of the chain. (Sei) */
chain_name: string;
/** The type of network, indicating whether it's a mainnet, testnet, or devnet. */
network_type: 'mainnet' | 'testnet' | 'devnet';
/** The unique identifier for the Sei network. 'pacific-1' | 'atlantic-2' | 'arctic-1' */
chain_id: string;
/** The name of the daemon process that runs the node software for the blockchain. (seid) */
daemon_name: string;
/** The prefix used for Bech32 encoded addresses on the network. (sei) */
bech32_prefix: string;
/** An array of cryptographic algorithms supported by the network for key generation. */
key_algos: string[];
/** The SLIP-44 coin type number assigned to the network for HD wallet purposes. */
slip44: number;
/** The denomination of the fee token used for transaction fees on the network. */
fee_token: string;
/** A list of wallet software that supports this blockchain network. */
supported_wallets: string[];
}
/**
* A constant that holds the chain information, imported from the official Sei [chain-registry](https://github.com/sei-protocol/chain-registry).
*
* @example
* ```tsx
* import { CHAIN_INFO } from '@sei-js/registry';
*
* console.log(CHAIN_INFO.bech32_prefix); // 'sei'
* ```
*/
export declare const CHAIN_INFO: ChainInfo;