Socket
Socket
Sign inDemoInstall

cardano-explorer

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cardano-explorer

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


Maintainers
1

Readme

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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc