|
8 | 8 |
|
9 | 9 | A minimal, yet complete, python API for [Etherscan.io](https://etherscan.io/). Available on [PyPI](https://pypi.org/project/etherscan-python/).
|
10 | 10 |
|
| 11 | +All FREE and PRO endpoints are provided. |
| 12 | + |
11 | 13 | Powered by [Etherscan.io APIs](https://etherscan.io/apis).
|
12 | 14 | ___
|
13 | 15 |
|
14 | 16 |
|
15 | 17 | ## Endpoints
|
16 | 18 |
|
17 |
| -All of the *free* GET endpoints from the following modules are provided: |
18 |
| - |
| 19 | +The following endpoints are provided: |
19 | 20 |
|
20 | 21 | <details><summary>Accounts <a href="https://etherscan.io/apis#accounts">(source)</a></summary>
|
21 | 22 | <p>
|
@@ -110,12 +111,40 @@ All of the *free* GET endpoints from the following modules are provided:
|
110 | 111 |
|
111 | 112 | </details>
|
112 | 113 |
|
| 114 | +<details><summary>Pro (PRO API key needed) <a href="https://etherscan.io/apis#APIpro">(source)</a></summary> |
| 115 | +<p> |
| 116 | + |
| 117 | +* `get_hist_eth_balance_for_address_by_block_no` |
| 118 | +* `get_daily_average_block_size` |
| 119 | +* `get_daily_block_count_and_rewards` |
| 120 | +* `get_daily_block_rewards` |
| 121 | +* `get_daily_average_block_time` |
| 122 | +* `get_daily_uncle_block_count_and_rewards` |
| 123 | +* `get_hist_erc20_token_total_supply_by_contract_address_and_block_no` |
| 124 | +* `get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no` |
| 125 | +* `get_token_info_by_contract_address` |
| 126 | +* `get_daily_average_gas_limit` |
| 127 | +* `get_eth_daily_total_gas_used` |
| 128 | +* `get_eth_daily_average_gas_price` |
| 129 | +* `get_eth_daily_network_tx_fee` |
| 130 | +* `get_daily_new_address_count` |
| 131 | +* `get_daily_network_utilization` |
| 132 | +* `get_daily_average_network_hash_rate` |
| 133 | +* `get_daily_tx_count` |
| 134 | +* `get_daily_average_network_difficulty` |
| 135 | +* `get_eth_hist_daily_market_cap` |
| 136 | +* `get_eth_hist_price` |
| 137 | + |
| 138 | +</details> |
| 139 | + |
113 | 140 | *If you think that a newly-added method is missing, kindly open an [issue](https://github.com/pcko1/etherscan-python/issues) as a feature request and I will do my best to add it.*
|
114 | 141 |
|
115 | 142 | ## Installation
|
116 | 143 |
|
117 | 144 | Before proceeding, you should register an account on [Etherscan.io](https://etherscan.io/) and [generate a personal API key](https://etherscan.io/myapikey) to use.
|
118 | 145 |
|
| 146 | +If you wish to have access to the PRO endpoints, you should obtain elevated privileges via Etherscan's subscription service. |
| 147 | + |
119 | 148 | Assuming [conda](https://docs.conda.io/en/latest/miniconda.html) is already installed on your system, first create the environment:
|
120 | 149 |
|
121 | 150 | ``` bash
|
@@ -173,7 +202,7 @@ eth.get_eth_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a")
|
173 | 202 |
|
174 | 203 | ## Examples
|
175 | 204 |
|
176 |
| -Examples (arguments and results) for all methods may be found as JSON files [here](https://github.com/pcko1/etherscan-python/tree/master/logs). For example, if you want to use the method `get_block_number_by_timestamp`, you can find the supported arguments and the format of its output in its respective [JSON file](logs/get_block_number_by_timestamp.json): |
| 205 | +Examples (arguments and results) for all methods may be found as JSON files [here](https://github.com/pcko1/etherscan-python/tree/master/logs). For example, if you want to use the method `get_block_number_by_timestamp`, you can find the supported arguments and the format of its output in its respective [JSON file](logs/standard/get_block_number_by_timestamp.json): |
177 | 206 |
|
178 | 207 | ``` json
|
179 | 208 | {
|
|
0 commit comments