Python API for blockscout explorers
Project description
blockscout-python
Python API for blockscout.com
Currently building and testing out on Rollux ...
Endpoints
The following endpoints are provided:
Installation
Install from source:
pip install git+https://github.com/defipy-devs/blockscout-python.git
Alternatively, install from PyPI:
pip install blockscout-python
Usage
from blockscout import Blockscout
eth = Blockscout(Net.ROLLUX) # key in quotation marks
Then you can call all available methods, e.g.:
eth.get_addresses()
> {'exchange_rate': None,
'items': [{'coin_balance': '3562345790348679629254255',
'tx_count': '0',
'ens_domain_name': None,
'hash': '0x4200000000000000000000000000000000000016',
'implementation_name': 'L2ToL1MessagePasser',
'is_contract': True,
'is_verified': True,
'metadata': None,
'name': 'Proxy',
'private_tags': [],
'public_tags': [],
'watchlist_names': []}, ... }
- See test notebook for basic usage
If you found this package helpful, please leave a :star:!
Powered by Blockscout.com APIs.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.