Retrieves chain information based on the provided identifier.
chain_identifier: Can be an integer (chain ID) or a string (chain name or alias)- Returns a
ChainInfoobject containing chain details - Raises
ChainNotFoundErrorif the chain is not found
A Pydantic model representing chain information. Key attributes include:
name: Chain namechainId: Chain IDnativeCurrency: Native currency details (name, symbol, decimals)wrapperNativeCurrency: Wrapper native currency details (name, symbol, decimals, contract)rpc: List of RPC URLsexplorers: List of block explorers
To set up the development environment:
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]" - Run tests:
pytest
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This project uses data from the chainid.network project, which provides a comprehensive list of EVM-compatible chains.
If you encounter any issues or have questions, please file an issue on the GitHub repository.
See CHANGELOG.md for a detailed history of changes to this project.
- gmatrix - Initial work and maintenance
This package is provided as-is, and while we strive for accuracy, we cannot guarantee the correctness of all chain information. Users should verify critical information independently.