The following blockchain explorers are supported in this plugin:
- Base for Base networks.
- Ethereum for Ethereum networks.
- Gnosis for Gnosis networks.
- Optimism for Optimism networks.
- Polygon for Polygon POS networks.
- python3 version 3.8 up to 3.11.
You can install the latest release via pip
:
pip install ape-blockscout
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/ape-blockscout.git
cd ape-blockscout
python3 setup.py install
Specify API keys as environment variables. You could put them in your shell's config like ~/.profile
or use a tool like direnv and store them locally in .envrc
.
You can also specify multiple comma-separated keys, a random key will be chosen for each request. This could be useful if you hit API rate limits.
You can obtain an API key by registering with Blockscout and visiting this page.
export BASE_BLOCKSCOUT_API_KEY=SAMPLE_KEY
export ETH_BLOCKSCOUT_API_KEY=SAMPLE_KEY
export GNOSIS_BLOCKSCOUT_API_KEY=SAMPLE_KEY
export OPTIMISM_BLOCKSCOUT_API_KEY=SAMPLE_KEY
export POLYGON_BLOCKSCOUT_API_KEY=SAMPLE_KEY
Please see the contributing guide to learn more how to contribute to this project. Comments, questions, criticisms and pull requests are welcomed.