Skip to main content API wrapper

Project description

etherscan-api module API python bindings


This module is written as an effort to provide python bindings to the API, which can be found at: If you are interacting with a contract on the Ropsten Testnet please use 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 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


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 API modules are available:

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

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

Available Networks

Currently, this works for the following networks:

  • Mainnet
  • Ropsten

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-api-0.1.6.tar.gz (8.4 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