Java SDK is a Java development kit for PlatON public chain provided by PlatON for Java developers.
git clone https://github.com/PlatONnetwork/client-sdk-java.git
cd client-sdk-java/
./gradlew clean jar //Generate jar package
./gradlew clean distZip //Generate code generation skeleton tool
- config maven repository: https://sdk.platon.network/nexus/content/groups/public/
- config maven or gradle in project
<dependency>
<groupId>com.platon.client</groupId>
<artifactId>core</artifactId>
<version>0.4.0</version>
</dependency>
or
compile "com.platon.client:core:0.4.0"
- use in project
Web3j web3 = Web3j.build(new HttpService("https://host:port"));