Use it in code@w3-kit/registry
The same data as this site, typed, in one package with no runtime dependencies.
Get a chain
import { getChain } from "@w3-kit/registry";
const base = getChain(8453);
base?.name; // "Base"
base?.rpcUrls[0]; // "https://mainnet.base.org"Find a token address on a chain
import { getToken } from "@w3-kit/registry";
const usdc = getToken("USDC");
usdc?.chains.find((d) => d.chainId === 8453)?.address;
// "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"List the tokens on a chain
import { getTokensByChain } from "@w3-kit/registry";
getTokensByChain(8453).map((t) => t.symbol);
// ["USDC","USDT","WETH","DAI"]Filter chains by ecosystem
import { getAllChains, getChainsByEcosystem } from "@w3-kit/registry";
getAllChains().length; // 14
getChainsByEcosystem("solana"); // Solana and Solana DevnetEvery export is listed in the registry repository.