Skip to content

Commit d1ec9e5

Browse files
committed
[2.0.0]
Release prepared
1 parent f09f38a commit d1ec9e5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_java-etherscan-api&metric=coverage)](https://sonarcloud.io/dashboard?id=GoodforGod_java-etherscan-api)
66
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_java-etherscan-api&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=GoodforGod_java-etherscan-api)
77
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=GoodforGod_java-etherscan-api&metric=ncloc)](https://sonarcloud.io/dashboard?id=GoodforGod_java-etherscan-api)
8-
[![](https://jitpack.io/v/GoodforGod/java-etherscan-api.svg)](https://jitpack.io/#GoodforGod/java-etherscan-api)
98

109
[Etherscan.io](https://etherscan.io/apis) Java API implementation.
1110

@@ -15,15 +14,15 @@ Library supports all available EtherScan *API* calls for all available *Ethereum
1514

1615
**Gradle**
1716
```groovy
18-
implementation "com.github.goodforgod:java-etherscan-api:2.0.0-SNAPSHOT"
17+
implementation "com.github.goodforgod:java-etherscan-api:2.0.0"
1918
```
2019

2120
**Maven**
2221
```xml
2322
<dependency>
2423
<groupId>com.github.goodforgod</groupId>
2524
<artifactId>java-etherscan-api</artifactId>
26-
<version>2.0.0-SNAPSHOT</version>
25+
<version>2.0.0</version>
2726
</dependency>
2827
```
2928

@@ -41,9 +40,9 @@ implementation "com.github.goodforgod:java-etherscan-api:2.0.0-SNAPSHOT"
4140
- [Token](#token-api)
4241
- [Version History](#version-history)
4342

44-
## Mainnet and Testnets
43+
## MainNet and TestNets
4544

46-
API support Ethereum [default networks](https://docs.etherscan.io/getting-started/endpoint-urls):
45+
API support all Ethereum [default networks](https://docs.etherscan.io/getting-started/endpoint-urls):
4746
- [Mainnet](https://api.etherscan.io/)
4847
- [Goerli](https://api-goerli.etherscan.io/)
4948
- [Sepolia](https://api-sepolia.etherscan.io/)
@@ -121,8 +120,8 @@ Abi abi = api.contract().contractAbi("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413
121120
**Get event logs for single topic**
122121
```java
123122
EtherScanAPI api = EtherScanAPI.build();
124-
LogQuery query = LogQueryBuilder.with("0x33990122638b9132ca29c723bdf037f1a891a70c")
125-
.topic("0xf63780e752c6a54a94fc52715dbc5518a3b4c3c2833d301a204226548a2a8545")
123+
LogQuery query = LogQuery.builder("0x33990122638b9132ca29c723bdf037f1a891a70c")
124+
.withTopic("0xf63780e752c6a54a94fc52715dbc5518a3b4c3c2833d301a204226548a2a8545")
126125
.build();
127126
List<Log> logs = api.logs().logs(query);
128127
```
@@ -163,7 +162,7 @@ Optional<BlockProxy> block = api.proxy().block(15215);
163162
**Statistic about last price**
164163
```java
165164
EtherScanAPI api = EtherScanAPI.build();
166-
Price price = api.stats().lastPrice();
165+
Price price = api.stats().priceLast();
167166
```
168167

169168
### Transaction API

0 commit comments

Comments
 (0)