Etherscan Java API implementation.
Maven
<dependency>
<groupId>com.github.goodforgod</groupId>
<artifactId>java-etherscan-api</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
dependencies {
compile 'com.github.goodforgod:java-etherscan-api:1.0.0'
}
How all is linked together:
You can read about all API methods on Etherscan
You can you API with you key or without key as well.
EtherScanApi api = new EtherScanApi();
EtherScanApi api = new EtherScanApi("YourApiKey");
API support: MAINNET, ROPSTEN, KOVAN, RINKEBY networks.
EtherScanApi api = new EtherScanApi(EthNetwork.MAINNET);
EtherScanApi api = new EtherScanApi("YourApiKey", EthNetwork.KOVAN);
Get Ether Balance for a single Address Example
EtherScanApi api = new EtherScanApi();
Balance balance = api.account().balance("0x8d4426f94e42f721C7116E81d6688cd935cB3b4F");
You can read account API here
Token API migrated to account & stats respectfully.
1.0.0 - Initial project with all API functionality.
This project is licensed under the MIT - see the LICENSE file for details.