API reference
Common usage of @w3-kit/registry. Install with npm install @w3-kit/registry.
Get a chain
import { getChain } from "@w3-kit/registry";
const ethereum = getChain(1);
console.log(ethereum.name); // "Ethereum"Get a token address on a chain
import { getTokenAddress } from "@w3-kit/registry";
const usdcOnBase = getTokenAddress("USDC", 8453);
// "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"Pick an RPC URL
import { getRpc } from "@w3-kit/registry";
const rpc = getRpc(8453);
// "https://mainnet.base.org"Full reference on github.com/w3-kit/registry.