Skip to main content

etherscan-api module

EtherScan.io API python bindings

Description

This module is written as an effort to provide python bindings to the EtherScan.io API, which can be found at: https://etherscan.io/apis. If you are interacting with a contract on the Ropsten Testnet please use https://ropsten.etherscan.io/apis. In order to use this, you must attain an Etherscan user account, and generate an API key.

In order to use the API, you must provide an API key at runtime, which can be found at the Etherscan.io API website. If you'd like to use the provided examples without altering them, then the JSON file api_key.json must be stored in the base directory. Its format is as follows:

{ "key" : "YourApiKeyToken" }

with YourApiKeyToken is your provided API key token from EtherScan.io

Installation

To install the package to your computer, simply run the following command in the base directory:

python3 -m pip install py-etherscan-api

Available bindings

Currently, only the following Etherscan.io API modules are available:

  • accounts
  • contracts
  • stats
  • tokens
  • proxies
  • blocks
  • transactions
  • Logs
  • Gas Tracker

The remaining available modules provided by Etherscan.io will be added eventually...

Available Networks

Currently, this works for the following networks:

  • Mainnet
  • Ropsten

Release files for etherscan-api 0.1.6

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

Source distribution (sdist)

Source distribution for etherscan-api 0.1.6
File Size Uploaded
etherscan-api-0.1.6.tar.gz 8.4 kB Details

Release files / etherscan-api-0.1.6.tar.gz

Download URL etherscan-api-0.1.6.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af6b31e5ccb2e47af4b8ead04aae42261778bf717951038a6a09867ca42ae9a1
BLAKE2b-256 checksum
How to use checksums
1a7d77e9a28bf28c3946b061491de93f31c6c8bb29fa9a2a9da18dae9d094f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.6 This release

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