Skip to content

Java wrapper for Utopia API to create your own services in WEB3

License

Notifications You must be signed in to change notification settings

CtrCatio/utopalib_java-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utopialib-java

Utopia Ecosystem API wrapper written in Java

utopialogo

This library is a must have for anyone who wants to start their web3 journey with the Utopia ecosystem in Java. The library greatly simplifies working with the Utopia API for Java programming.


How to

  1. Download the JAR file of the library:

CtrCatio/utopalib_java-main/blob/main/libs/utopalib_java-main.jar

  1. Adding the JAR File to Your Project or use Gradle

For Gradle

Create a libs folder in the root of your project (if it doesn't already exist). Place the downloaded utopalib_java-main.jar in the libs folder.

Add the following dependency to your build.gradle file:

dependencies {
    implementation files('libs/utopalib_java-main.jar')
}

Import library

import com.company.libUtp; 

example class

public class Main {

    public static void main(String[] args) throws IOException {
        // sample using

        libUtp utpAPI = new libUtp();

        utpAPI.port = "20000";
        utpAPI.token =  "219C91A00340B54F7AD4C1DB40E9B9E3";

        System.out.println(utpAPI .getSystemInfo());
    }
}

response:

{"result": {"buildAbi": "x86_64-little_endian-llp64","buildCpuArchitecture": "x86_64","build_number": "1.0.7114","currentCpuArchitecture": "x86_64","netCoreRate": 25,"networkCores": 4,"networkEnabled": true,"numberOfConnections": 15,"packetCacheSize": 977753,"uptime": "01:37:58"},"resultExtraInfo": {"elapsed": "0"}}

How can this be used?

  1. creating a web service that processes client requests;
  2. creation of a payment service;
  3. development of a bot for the channel;
  4. utility for working with uNS;
  5. experiments to explore web3.0;

About

Java wrapper for Utopia API to create your own services in WEB3

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages