Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Reference: sushi/evm Chain

The EVM chain module exposes EVM-only chain metadata and type guards.

ExportPurpose
evmChains, evmChainIdsKnown EVM chains and IDs.
EvmChainIdEnum-like EVM chain ID lookup.
isEvmChainId, getEvmChainByIdGuard and lookup by ID.
EvmMainnetChainId, isEvmMainnetChainIdMainnet type and guard.
EvmTestnetChainId, isEvmTestnetChainIdTestnet type and guard.
EvmChainKey, isEvmChainKey, getEvmChainByKeyChain key type, guard, and lookup.
defineEvmChainDefine an EVM chain object.
import { EvmChainId, getEvmChainById, getEvmChainByKey } from 'sushi/evm'
 
const ethereum = getEvmChainById(EvmChainId.ETHEREUM)
const base = getEvmChainByKey('base')
 
ethereum.viemChain

EVM chain objects include viem chain metadata and explorer URL helpers. For feature support such as API, V2, or V3 availability, see EVM Config.