evm.chains.<chainName> — the chain keys match the exports from viem/chains (for example, Ethereum mainnet is evm.chains.mainnet, not evm.chains.ethereum). Compose also supports custom chain configurations for any EVM network not covered by Edge RPC. See Wallets and Smart Contracts for more details on how chains are used.
Using built-in chains
This is the easiest and most reliable option for most scenarios.Using custom chains
To use a custom chain you just need to create an object that fulfills ourChain interface.
Chain type is available from the TaskContext interface. Here it is for reference: