Skip to content

A java interface for interacting with the PlatON application chains

License

Notifications You must be signed in to change notification settings

PlatONnetwork/AppChain-client-sdk-java

 
 

Repository files navigation

Overview

Java SDK is a Java development kit for PlatON public chain provided by PlatON for Java developers.

Build

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
./gradlew -Pintegration-tests=true :integration-tests:test    //To run the integration tests:
   

Use

<dependency>
    <groupId>com.platon.sdk</groupId>
    <artifactId>core</artifactId>
    <version>1.3.0.2</version>
</dependency>

or

compile "com.platon.sdk:core:1.3.0.2"
  • use in project
  1. SDK includes PlatON network already. User can initialize custom networks, the latest is the current network.
NetworkParameters.init(2000L, "ABC");  

chain ID 201018 is reserved for Alaya, and chain ID 210425 is reserved for PlatON.

  1. user can switch current network if multi-networks have been initialized.
NetworkParameters.selectNetwork(2000L, "ABC");  
  1. In Alaya, the gas price for submitting a proposal is lower than in PlatON. When initializing a network with the parameter chainId:201018 or hrp:atp, this network will be considered as an Alaya network.

About

A java interface for interacting with the PlatON application chains

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.7%
  • Solidity 2.7%
  • Other 0.6%