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 87be4c6

Browse files
Added testnet example in Usage
1 parent 7530eca commit 87be4c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎README.md

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

1616

17-
A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided.
17+
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.
1818

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

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

197201
## Examples
198202

0 commit comments

Comments
(0)

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