Overview
A typed chain registry for the Polkadot ecosystem.
@zig-zag/chains
A typed chain registry for Polkadot SDK chains. Provides rich, tree-shakeable metadata for relay chains, system parachains, third-party parachains, and testnets — including named RPC providers, genesis hashes, Subscan integration, light client URLs, and network topology.
Works with Dedot, PAPI, LunoKit, or standalone.
Install
npm i @zig-zag/chainsQuick Start
import { polkadot } from '@zig-zag/chains';
console.log(polkadot.name); // "Polkadot"
console.log(polkadot.rpcUrls.dwellir); // "wss://polkadot-rpc.n.dwellir.com"
console.log(polkadot.chainIconUrl); // base64 SVG data URIFeatures
- 20+ chains — Polkadot, Kusama, Westend, and popular parachains
- Typed exports — Full TypeScript support with autocomplete
- Tree-shakeable — Only import the chains you use
- Logos included — Base64 SVG data URIs for every chain
- Named RPCs — Provider names instead of anonymous URL arrays
- Genesis hashes — For chain identification
- Pre-built groups —
relayChains,systemChains,parachainChains,testnetChains,mainnetChains