Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A minimal, yet complete, python API for Etherscan.io.

License

NotificationsYou must be signed in to change notification settings

AndyXIN/etherscan-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal python API foretherscan.io.

Build StatuscodecovPython 3.8GitHub


Most of the free webhooks from theAccounts,Contracts,Transactions andTokens modules are supported. Their example use-cases are summarizedhere.

Installation

Before proceeding, you should register an account on etherscan.io and generate a personal API key to use.

Assumingconda is already installed on your system, first create the environment:

conda env create -f env.yml

Activate the environment:

conda activate etherscan-python

Then, install the package:

pip install.

Run unittests

conda activate etherscan-python&& bash run_tests.sh

Usage

Inpython, create a client with your personal etherscan.io API key:

frometherscan.clientimportClientapi_key=YOUR_API_KEYconfig_path="etherscan/configs/stable.json"client=Client.from_config(config_path,api_key)

Then you can call all available methods, e.g.:

client.get_eth_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a")> ('40891631566070000000000','OK')

Powered byEtherscan.io APIs.

About

A minimal, yet complete, python API for Etherscan.io.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python99.8%
  • Shell0.2%

[8]ページ先頭

©2009-2025 Movatter.jp