Expand description
§Chain registry (L2)
The one table of chains: the canonical id, the aliases users type, the EVM chain id, the explorer, the native token, the DexScreener id and the wrapped native token. Chain metadata, the DEX lookups, the contract source and Sourcify checks, the EVM client and the CLI’s lists of supported chains all read it.
Structs§
- Chain
- One chain.
Enums§
- Chain
Kind - How scope talks to a chain.
Constants§
- CHAINS
- Every chain scope knows, in the order lists show them.
Functions§
- chain
- The chain named
name(its id or an alias, any case). - chain_
help - The
--chainhelp of commands that take any chain with a client. - client_
chain_ ids - The ids of the chains with a chain client (address, tx, contract): everything but the DEX-only chains.
- client_
chain_ list client_chain_idsjoined for help and error text.- explorer_
api_ chain_ list - The EVM chains with an Etherscan-compatible API, joined for help text.
- has_
explorer - True when
namehas a chain client and a block explorer (token info and holders): not a JSON-RPC-only chain, not a DEX-only one. - is_evm
- True when
nameis an EVM chain with a client.