Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.
Original source data: https://github.com/ethereum-lists/chains
pip
You can install the latest release via pip
:
pip install evmchains
setuptools
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/evmchains.git
cd evmchains
python3 setup.py install
from evmchains import get_chain_meta
chain = get_chain_meta("ethereum", "mainnet")
assert chain.chainId == 1
Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.
To add a chain to the metadata, please open a pull request with the following changes:
CHAIN_IDS
in scripts/update.py
with the chain IDs you want to addpython scripts/update.py
evmchain/chains.py
metdata fileDo not edit evmchain/chains.py
manually. Any manual changes are likely to be overwritten later.