Skip to main content

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

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 in scripts/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evmchains-0.0.13.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

evmchains-0.0.13-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file evmchains-0.0.13.tar.gz.

File metadata

  • Download URL: evmchains-0.0.13.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for evmchains-0.0.13.tar.gz
Algorithm Hash digest
SHA256 f017bff69bbdf3d822148c5500969e600e28218df55a7c19a9d9c34e7e36c179
MD5 f9ec5175b76ad3dc0e046b713b0f0af2
BLAKE2b-256 7a8c552415f1132054f6fce262d8b9eaac56a7ada787f55cda9c1ab479e98a9a

See more details on using hashes here.

File details

Details for the file evmchains-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: evmchains-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for evmchains-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 01f49c7e1e9f8095c4ec64b33db5c45b7ba4ebecc7607e8a1104b2721c57ec85
MD5 f42c9b2e63063a40d7a82f074466ee94
BLAKE2b-256 6644dd79fbcd5dac6a297c5c1a7eaab0ac9a991530b18818684959ed65979668

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page