Skip to content

jclouise/java-etherscan-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-etherscan-api

Etherscan Java API implementation.

Dependency 🚀

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'
}

Content

Overall

How all is linked together:

Api Examples

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");

Mainnet and Testnets

API support: MAINNET, ROPSTEN, KOVAN, RINKEBY networks.

EtherScanApi api = new EtherScanApi(EthNetwork.MAINNET);
EtherScanApi api = new EtherScanApi("YourApiKey", EthNetwork.KOVAN);

Account Api

Get Ether Balance for a single Address Example

EtherScanApi api = new EtherScanApi();
Balance balance = api.account().balance("0x8d4426f94e42f721C7116E81d6688cd935cB3b4F");

Block Api

Contract Api

Logs Api

Proxy Api

Stats Api

Transaction Api

Token Api

You can read account API here

Token API migrated to account & stats respectfully.

Version History

1.0.0 - Initial project with all API functionality.

License

This project is licensed under the MIT - see the LICENSE file for details.

About

🔩 Polished Java library for EtherScan.io API

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%