Packaged metadata on Ethereum Virtual Machine (EVM) chains
Project description
Python EVM Chains Metadata
Provides general metadata on EVM-compatible chains organized by Ape-style ecosystem and network.
Original source data: https://github.com/ethereum-lists/chains
Quick Start
Dependencies
- python3 version 3.8 up to 3.12.
Installation
via pip
You can install the latest release via pip
:
pip install evmchains
via 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
Quick Usage
from evmchains import get_chain_meta
chain = get_chain_meta("ethereum", "mainnet")
assert chain.chainId == 1
Development
Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.
Adding Chains
To add a chain to the metadata, please open a pull request with the following changes:
- Update
CHAIN_IDS
inscripts/update.py
with the chain IDs you want to add - Run
python scripts/update.py
- Submit a PR with the updated script and updated
evmchain/chains.py
metdata file
Do not edit evmchain/chains.py
manually. Any manual changes are likely to be overwritten later.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for evmchains-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc41e8643248c6629574473cc9afe17b0b977c4871216aad560e4ca07d30db0 |
|
MD5 | 6fc11f5dc910d49fa77ca7b74581b627 |
|
BLAKE2b-256 | f70b74b239fc9c4b6b3b970ef26d2274e1475f61180f21cdf1d7ee111e24fcc7 |