MyGit

tronprotocol/tronj

Fork: 28 Star: 50 (更新于 2024-11-19 16:44:40)

license: Apache-2.0

Language: Java .

Java sdk of tron

最后发布版本: 0.1.2 ( 2021-02-08 12:38:19)

GitHub网址

tronj

Tronj is a lightweight SDK that includes libraries for working with TRON system contracts and smart contracts.

Tronj makes it easy to build TRON applications with java.

Tronj document: https://tronjdocument.readthedocs.io/en/latest/

How to use

Gradle Setting

Add repo setting:

repositories {
    maven {
        url  "https://dl.bintray.com/tronj/tronj"
    }
}

Then add required packages as dependencies.

dependencies {
    // protobuf & grpc
    implementation 'com.google.protobuf:protobuf-java:3.11.0'

    implementation 'org.tron.tronj:abi:0.1.2'
    implementation 'org.tron.tronj:client:0.1.2'
    implementation 'org.tron.tronj:utils:0.1.2'

    implementation 'com.google.guava:guava:28.0-jre'
}

Maven Settings

<dependency>
  <groupId>org.tron.tronj</groupId>
  <artifactId>abi</artifactId>
  <version>0.1.2</version>
  <type>pom</type>
</dependency>
<dependency>
  <groupId>org.tron.tronj</groupId>
  <artifactId>utils</artifactId>
  <version>0.1.2</version>
  <type>pom</type>
</dependency>
<dependency>
  <groupId>org.tron.tronj</groupId>
  <artifactId>client</artifactId>
  <version>0.1.2</version>
  <type>pom</type>
</dependency>

Signature Verification

Package signature files are uploaded together with .jar files. Packages are signed with GnuPG.

Install GPG

brew install gnupg

Get the Public Key

gpg --keyserver keyserver.ubuntu.com --recv-key AD0876A4

Alternatively, you may import the public manually from below:

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGNBF/XiOcBDADUYu9eTQSN9RT86/oMdlEcC4euVrfO+GSXdimJlwXfjJJRYVPy
zJCRa6ANzIHsXC0x9KkdRCejEjQPafwnqGYat9lSSRx+EjjCqHKzUE4re6MiAHsH
l9TVGU9BIJQRm03UEK/oF9k9sEZrFgiMe9357p+JAeI4WXtCJMg/G6dRDR1YZlpz
3+krz0OFFvOe3yJLmoZPvBNoYI4zuIiOI0isQzqRgF0kleA5KLWRmCeQ8DBlrEUx
/c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K-----

Verify Packages

Download package and the corresponding .asc file, take abi as an example:

gpg --verify abi-0.1.2.jar.asc abi-0.1.2.jar

gpg: Signature made Mon Dec 28 11:51:48 2020 CST
gpg:                using RSA key 76C182C1E1269F494C2315FEA825D8D6E8B49016
gpg: Good signature from "tronj <tronjsdk@gmail.com>" [ultimate]

最近版本更新:(数据更新于 2024-08-28 11:06:34)

2021-02-08 12:38:19 0.1.2

2020-12-28 13:17:06 0.1.1

2020-12-08 17:57:11 0.1.0

tronprotocol/tronj同语言 Java最近更新仓库

2024-11-21 20:32:01 spring-projects/spring-boot

2024-11-21 09:44:43 Card-Forge/forge

2024-11-20 14:38:43 StarRocks/starrocks

2024-11-19 23:42:52 spring-projects/spring-authorization-server

2024-11-18 21:40:12 4379711/lol-helper

2024-11-16 22:50:41 xuxueli/xxl-job