Skip to main content

Etherscan.io API wrapper

Project description

Etherscan.io API wrapper

An Etherscan.io API wrapper, for Python.

Installation

pip3 install etherscan

Usage

import etherscan

es = etherscan.Client(
    api_key='YOUR_API_KEY',
)

eth_price = es.get_eth_price()

eth_supply = es.get_eth_supply()

eth_balance = es.get_eth_balance('0x39eB410144784010b84B076087B073889411F878')

eth_balances = es.get_eth_balances([
    '0x39eB410144784010b84B076087B073889411F878',
    '0x39eB410144784010b84B076087B073889411F879',
])

gas_price = es.get_gas_price()

block = es.get_block_by_number(block_number):

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

etherscan-0.1.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etherscan-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file etherscan-0.1.3.tar.gz.

File metadata

  • Download URL: etherscan-0.1.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for etherscan-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0302950010cd9455c28d64ecec074d1ed2b6a97bbe1aa36beac547afddaccf56
MD5 3ed3f3c7496128b2a5bb758a00e11e36
BLAKE2b-256 08abf9e7f169d25f93e4c868f722cc04cb510837fa00695f7e8511b71f2962e0

See more details on using hashes here.

File details

Details for the file etherscan-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: etherscan-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for etherscan-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb61b86fe8a7aba500dde3e452e51f18ece752ea84d2d8dd7a69ad69c5841ec0
MD5 5340432700f9501aa5bb46d558b63cbe
BLAKE2b-256 880864e690b92f4632aa9457102824138ea9dde6a33711a391e1a9461903eb32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page