Skip to content
Afr Schoe edited this page May 16, 2022 · 4 revisions

The Eth::Chain module provides some convenience for management of various chains and replay protection (EIP-155).

chain_id = Eth::Chain::OPTIMISM
# => 10

For Ethereum testnets, please consider Eth::GOERLI (Goerli Testnet) or Eth::SEPOLIA (Sepolia Testnet).

Most functionality is mainly for internal use only, but check out the API documentation for a full overview.

Clone this wiki locally