Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

nervosnetwork/muta-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Muta SDK

The Java SDK for Muta(a High performance Blockchain framework). Allow you to interact with Muta node's GraphQL service.

Quick Start

Installation

The maven artifact will be soon on jcenter.

gradle

repositories {
    maven {
        url  "https://dl.bintray.com/lycrushamster/Muta-Java-SDK"
    }
}

dependencies {
    //please choose the version you want
    api "org.nervos:muta-sdk-java"
}

maven

    <repository>
      <id>muta</id>
      <name>Muta-Java-SDK-bintray</name>
      <url>https://dl.bintray.com/lycrushamster/Muta-Java-SDK</url>
      <layout>default</layout>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>

    <dependency>
      <groupId>org.nervos</groupId>
      <artifactId>muta-sdk-java</artifactId>
      <version>choose your version</version>
    </dependency>
   

Usage

Muta muta = new Muta(new Client("url"),Account.fromHexString("0xprivKey"),MutaRequestOption.defaultMutaRequestOption() );

Useful Classes

There are several classes you may interest on as follows.

  • Muta - All-in-one SDK for Muta framework
  • Client - Wrapping the GraphQL like RPC.
  • Batch - BatchClient for only queries.
  • wallet/Wallet - BIP44 wallet
  • walletAccount - Account for managing private key and signing
  • util - Several utilities
  • service - Each service contain pre-defined method name and payload data structure

Links

Development

  • java version >= 1.8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages