Java SDK
Accumulate Java SDK Guide
The Accumulate SDK is a Java library for implementing sending and receiving tokens in Java apps with Accumulate. It provides easy-to-use Java methods, and Integrating our SDK into your Desktop application is easy and beginner-friendly.
Accumulate Java SDK helps the developers to integrate their applications with Accumulate network. It has ready-made methods to execute. So, the developers can reuse the codebase and develop their applications efficiently.
To view the Java generated documentation, visit this link
Requirements:
Basic Java programming language experience
Java 11+
IntelliJ Idea IDE
Basic knowledge of Accumulate
In this guide, we focused on two main parts, the Installation and code examples of the Java SDK.
Installation
Add pom.xml file
Open an existing Java project
In the Project tool window, right-click your project and select Add Framework Support.

3. In the open dialog, select Maven from the options on the left and click OK.

IntelliJ IDEA will automatically add a pom.xml file to the project and generates the standard Maven layout in the Project tool window.

Open the generated pom.xml file and add the below information. The artifactId and version are specified automatically.
Configure the Java SDK repo (settings.xml configuration)
Currently, the Java SDK is hosted in a private repository. To access the repository we have to specify the username and password of the repository.
To set the credentials, we have to create a settings file inside the
.m2directory.Since we are using the maven, the system itself can create the
.m2directory while maven installation.Else follow the below steps.
$ cd- It will go to the home directory. (for example /home/user/)$ mkdir .m2- It will create a.m2directory (/home/user/.m2/)Now create a settings.xml file inside the
.m2directory (/home/user/.m2/settings.xml)Then paste the below xml content into the
settings.xmlfile.
And save the file
Now the system can access the Java SDK private repository.
Now you have your project fully configured to use the Accumulate Java SDK. We have some code examples below to help you get started using the SDK to make it easier.
Code Reference
The Accumulate java SDK methods with examples of how to use them in your project.
LiteAccount
Faucet
Add Credit
BurnTokens
CreateADI
CreateDataAccount
CreateKeyBook
CreateKeyPage
CreatToken
CreatTokenAccount
IssueToken
SendToken
UpdateKeyPage
WriteData
Last updated
Was this helpful?