Skip to main content

Module registry

Module registry 

Source
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§

ChainKind
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 --chain help 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_ids joined 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 name has 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 name is an EVM chain with a client.