This is a python module aiming to allow the user to quickly fetch any ABI from a verified smartcontract on any EVM compatible blockchain.
This is a beta version, improvements might be added over time. if you notice anything not working appropriately or have any suggestions, feel free to report them.
commands:
abi-fetcher help or h => display this message
abi-fetcher list => display all available networks
abi-fetcher fetch --contract xxx --network xxx --api-key xxx --output xxx
--contract = the contract address on the blockchain
--network = network name as displayed in the list (use quotation marks)
--api-key = your personnal etherscan api key. If you don't have one, just go there : https://etherscan.io/ and sign up to get one.
--output(optional) = output directory for the generated ABI. Default directory is /ABI from the root
example : abi-fetcher fetch --contract 0xXXXXXX --network "base mainnet" --api-key XXXXXXXXXXXX
If you are unsure about the network name you can browse the abi_fetcher/chainlist.json file to search via chain ID. If the network isn't listed, you can either add a network entry into the json abi_fetcher/chainlist.json or try inputing the beginning of the explorer API Url like this :
https://api.etherscan.io/v2/api ?chainid=1 &module=contract &action=getabi &address=0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413 &apikey=YourApiKeyToken
replace the part between * * with your own url.
The abi json should be in the ABI folder. If anything went wrong, you will find the recorded error message in the created json file.
Metadata
Release files for abi-fetcher 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abi_fetcher-0.1.1.tar.gz | 10.8 kB | Without provenance | Details for abi_fetcher-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abi_fetcher-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for abi_fetcher-0.1.1-py3-none-any.whl |
Total release size: 23.1 kB
Release files / abi_fetcher-0.1.1.tar.gz
| Download URL | abi_fetcher-0.1.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bac0ebc0877d25a02a0fc63f02e09213e645a4eb2db0bf8bbded3db3f360427
|
|
BLAKE2b-256 checksum How to use checksums |
1a6b477aa808bb968cfa70a1ceba002c1f612a730017174cfd97360a3cd6aded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / abi_fetcher-0.1.1-py3-none-any.whl
| Download URL | abi_fetcher-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9041bd192ecf7e8562bc604b6255d82ab3c5558be2ff5c6ff91309f18727b828
|
|
BLAKE2b-256 checksum How to use checksums |
dc99361b9c058d096027006f738fd4437ca4fefad2748c038f4ce45676f0c50c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Security for abi-fetcher 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.