chains
The chains object is a type-safe mapping of supported chain IDs to their corresponding Viem Chain configuration objects.
Usage
import { chains } from '@ethereum-tag-service/contracts'
const baseSepoliaChain = chains['84532']
// @log: Output: Returns the Viem Chain object for Base Sepolia
Returns
MultiChainConfig
An object containing chain configurations indexed by chain ID.
Properties
Chain IDs
- Type:
"84532" | "31337"
- Description: Supported network chain IDs
Available chains:
84532
(baseSepolia)31337
(hardhat)
Examples
import { chains } from '@ethereum-tag-service/contracts'
// Access Base Sepolia chain config
const baseChain = chains['84532']
// Access local Hardhat chain config
const localChain = chains['31337']