ZigZag

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/chains

Quick 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 URI

Features

  • 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 groupsrelayChains, systemChains, parachainChains, testnetChains, mainnetChains

On this page