Skip to main content

Python Cardano Explorer PyPI - Python Version PyPI - Python Version

Python wrapper for accessing and processing information stored on the Cardano blockchain using Blockfrost API.

Install

pip install cardano_explorer

Usage

from cardano_explorer import blockfrost_api

Api Key

If you have an API key, you can either set it as environment variable BLOCKFROST_API_KEY or set it manually.

cardano_mainnet = blockfrost_api.Auth()
#or
cardano_mainnet = blockfrost_api.Auth(api_key=api_key)

Using With Proxy

proxies = {
 "http": "http://user:password@server:port",
 "https": "https://user:password@server:portt",
}

cardano_mainnet = blockfrost_api.Auth(proxies=proxies)

Network

You can specify the cardano network with the class parameter network.

cardano_mainnet = blockfrost_api.Auth() # mainnet by default
#or
cardano_mainnet = blockfrost_api.Auth(network='mainnet')
#or
cardano_mainnet = blockfrost_api.Auth(network='testnet')

Quickstart

Return detailed about the network.

cardano_mainnet.network_info()
{'supply': {'max': '45000000000000000',
  'total': '33206309572085375',
  'circulating': '32854605043085013',
  'locked': '11030148142156',
  'treasury': '630037263793143',
  'reserves': '11793690427914625'},
 'stake': {'live': '23374530755001598', 'active': '23395112387185878'}}

Documentation

The official documentation is hosted on GitHub.

Credit

Disclaimer

The project is still under development, If you find bugs or want additional features, open an issue and/or create a pull request.

Metadata

Release files for cardano-explorer 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cardano-explorer 0.4.0
File Size Uploaded
cardano_explorer-0.4.0.tar.gz 20.4 kB Details

Release files / cardano_explorer-0.4.0.tar.gz

Download URL cardano_explorer-0.4.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a6521e45b3889d8a891a6bbe6dfb376d2d28b35d56ed107f39e427c493c6038
BLAKE2b-256 checksum
How to use checksums
3ed4df87786c223c00b37143f2bc1a40a8a763ff043ad51a0725b7ec1c087d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

2 release files

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page