Need help with client-sdk-java?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

PlatONnetwork
159 Stars 19 Forks Apache License 2.0 1.2K Commits 2 Opened issues

Description

A java interface for interacting with the PlatON network

Services available

!
?

Need anything else?

Contributors list

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

  • config maven repository: https://sdk.platon.network/nexus/content/groups/public/
  • config maven or gradle in project
    com.platon.sdk
    core
    1.1.0.0

or

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

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

  1. user can switch current network if multi-networks have been initialized.
    java
    NetworkParameters.selectNetwork(2000L, "ABC");  
    
  2. 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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.