@@ -14,14 +14,14 @@ Library supports all available EtherScan *API* calls for all available *Ethereum
1414<dependency >
1515 <groupId >com.github.goodforgod</groupId >
1616 <artifactId >java-etherscan-api</artifactId >
17- <version >1.0.0 </version >
17+ <version >1.0.1 </version >
1818</dependency >
1919```
2020
2121** Gradle**
2222``` groovy
2323dependencies {
24- compile 'com.github.goodforgod:java-etherscan-api:1.0.0 '
24+ compile 'com.github.goodforgod:java-etherscan-api:1.0.1 '
2525}
2626```
2727
@@ -40,12 +40,17 @@ dependencies {
4040- [ Version History] ( #version-history )
4141
4242## Mainnet and Testnets
43- API support Ethereum: * [ MAINNET] ( https://etherscan.io ) , [ ROPSTEN] ( https://ropsten.etherscan.io ) ,
44- [ KOVAN] ( https://kovan.etherscan.io ) , [ RINKEBY] ( https://rinkeby.etherscan.io ) * networks.
43+ API support Ethereum: * [ MAINNET] ( https://etherscan.io ) ,
44+ [ ROPSTEN] ( https://ropsten.etherscan.io ) ,
45+ [ KOVAN] ( https://kovan.etherscan.io ) ,
46+ [ RINKEBY] ( https://rinkeby.etherscan.io ) ,
47+ [ GORLI] ( https://goerli.etherscan.io ) ,
48+ [ TOBALABA] ( https://tobalaba.etherscan.com ) * networks.
4549``` java
46- EtherScanApi api = new EtherScanApi (EthNetwork . MAINTNET );
47- EtherScanApi api = new EtherScanApi (EthNetwork . RINKEBY );
48- EtherScanApi api = new EtherScanApi (" YourApiKey" , EthNetwork . KOVAN );
50+ EtherScanApi api = new EtherScanApi (EthNetwork . MAINNET ); // Default
51+ EtherScanApi apiRinkeby = new EtherScanApi (EthNetwork . RINKEBY );
52+ EtherScanApi apiRopsten = new EtherScanApi (EthNetwork . ROPSTEN );
53+ EtherScanApi apiKovan = new EtherScanApi (" YourApiKey" , EthNetwork . KOVAN );
4954```
5055
5156## Custom HttpClient
@@ -56,10 +61,10 @@ just implement **IHttpExecutor** by your self or initialize it with your values.
5661``` java
5762int connectionTimeout = 10000 ;
5863int readTimeout = 7000 ;
64+
5965Supplier<IHttpExecutor > supplier = () - > new HttpExecutor (connectionTimeout);
6066Supplier<IHttpExecutor > supplierFull = () - > new HttpExecutor (connectionTimeout, readTimeout);
61-
62-
67+
6368EtherScanApi api = new EtherScanApi (EthNetwork . RINKEBY , supplier);
6469EtherScanApi apiWithKey = new EtherScanApi (" YourApiKey" , EthNetwork . MAINNET , supplierFull);
6570```
@@ -70,14 +75,15 @@ You can read about all API methods on [Etherscan](https://etherscan.io/apis)
7075
7176* Library support all available EtherScan API.*
7277
73- You can use API with you key or without key as well (Check API request\sec restrictions).
74- Library support limit when used without key and will limit requests up to * 5 req/sec by itself* .
78+ You can use library * with or without* API key * ([ Check API request\sec restrictions when used without API key] ( https://ethereum.stackexchange.com/questions/34190/does-etherscan-require-the-use-of-an-api-key ) )* .
79+
80+ Library will automatically limit requests up to ** 5 req/sec** when used * without* key.
7581``` java
7682EtherScanApi api = new EtherScanApi ();
7783EtherScanApi api = new EtherScanApi (" YourApiKey" );
7884```
7985
80- Below there are examples for each API category.
86+ Below are examples for each API category.
8187
8288### Account Api
8389** Get Ether Balance for a single Address**
@@ -121,6 +127,7 @@ LogQuery query = LogQueryBuilder.with("0x33990122638b9132ca29c723bdf037f1a891a70
121127 .setOpTopic0_2(LogOp . OR )
122128 .setOpTopic1_2(LogOp . AND )
123129 .build();
130+
124131List<Log > logs = api. logs(). logs(query);
125132```
126133
@@ -152,12 +159,14 @@ Optional<Boolean> status = api.txs().receiptStatus("0x513c1ba0bebf66436b5fed86ab
152159```
153160
154161### Token Api
155- You can read token API [ here] ( https://etherscan.io/apis#tokens )
162+ You can read about token API [ here] ( https://etherscan.io/apis#tokens )
156163
157164Token API methods migrated to [ Account] ( #account-api ) & [ Stats] ( #stats-api ) respectfully.
158165
159166## Version History
160167
168+ ** 1.0.1** - Gorli & TOBALABA networks support.
169+
161170** 1.0.0** - Initial project with all API functionality, for all available networks, with tests coverage for all cases.
162171
163172## License
0 commit comments