Skip to main content

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:

Accounts (source)

  • get_addresses

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': []}, ... }

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.

Source Distribution

blockscout_python-0.0.2.tar.gz (6.9 kB view hashes)

Uploaded Source

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