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

Commit c56d1ea

Browse files
authored
Merge pull request #13 from litneet64/master
Add support for testnets
2 parents 799f92e + 87be4c6 commit c56d1ea

File tree

10 files changed

+1895
-17
lines changed

10 files changed

+1895
-17
lines changed

‎MANIFEST.in‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include etherscan/configs/stable.json
1+
include etherscan/configs/MAIN-stable.json
2+
include etherscan/configs/GOERLI-stable.json
3+
include etherscan/configs/KOVAN-stable.json
4+
include etherscan/configs/RINKEBY-stable.json
5+
include etherscan/configs/ROPSTEN-stable.json

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404)
1616

1717

18-
A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided.
18+
A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. Görli, Kovan, Rinkeby and Ropsten endpoints are supported.
1919

2020
Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc).
2121

@@ -194,6 +194,10 @@ eth.get_eth_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a")
194194
195195
> '40891631566070000000000'
196196
```
197+
You can also choose one of the other testnets:
198+
``` python
199+
eth = Etherscan(YOUR_API_KEY, net="ropsten") # net name is case-insensitive, default is main
200+
```
197201

198202
## Examples
199203

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /