You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,47 +2,51 @@
2
2
3
3
[](http://travis-ci.org/corpetty/py-etherscan-api)[](https://gitter.im/py-etherscan/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
4
5
-
6
5
EtherScan.io API python bindings
7
6
8
7
## Description
9
-
This module is written as an effort to provide python bindings to the EtherScan.io API, which can be found at:
10
-
https://etherscan.io/apis. If you are interacting with a contract on the Ropsten Testnet please use
11
-
https://ropsten.etherscan.io/apis.
8
+
9
+
This module is written as an effort to provide python bindings to the EtherScan.io API, which can be found at:
10
+
https://etherscan.io/apis. If you are interacting with a contract on the Ropsten Testnet please use
11
+
https://ropsten.etherscan.io/apis.
12
12
In order to use this, you must attain an Etherscan user account, and generate an API key.
13
13
14
14
In order to use the API, you must provide an API key at runtime, which can be found at the Etherscan.io API website.
15
15
If you'd like to use the provided examples without altering them, then the JSON file `api_key.json` must be stored in
16
-
the base directory. Its format is as follows:
16
+
the base directory. Its format is as follows:
17
17
18
18
{ "key" : "YourApiKeyToken" }
19
-
19
+
20
20
with `YourApiKeyToken` is your provided API key token from EtherScan.io
21
21
22
22
## Installation
23
+
23
24
To install the package to your computer, simply run the following command in the base directory:
24
25
25
26
python3 -m pip install py-etherscan-api
26
-
27
27
28
28
## Available bindings
29
+
29
30
Currently, only the following Etherscan.io API modules are available:
30
31
31
32
- accounts
32
33
- contracts
33
34
- stats
34
35
- tokens
35
36
- proxies
37
+
- blocks
36
38
37
39
The remaining available modules provided by Etherscan.io will be added eventually...
38
40
39
41
## Available Networks
42
+
40
43
Currently, this works for the following networks:
41
44
42
45
- Mainnet
43
46
- Ropsten
44
47
45
48
## Examples
49
+
46
50
All possible calls have an associated example file in the examples folder to show how to call the binding
47
51
48
52
These of course will be fleshed out with more details and explanation in time
@@ -53,15 +57,15 @@ Jupyter notebooks area also included in each directory to show all examples
53
57
54
58
- Package and submit to PyPI
55
59
- Add the following modules:
56
-
- event logs
57
-
- geth proxy
58
-
- websockets
60
+
- event logs
61
+
- geth proxy
62
+
- websockets
59
63
- Add robust documentation
60
64
- Add unit test suite
61
65
- Add request throttling based on Etherscan's suggestions
0 commit comments