基于区块链的毕业设计EtherJar – 以太坛子

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计EtherJar – 以太坛子 是一篇很好的国外资料

EtherJar

EtherJar - 以太坛子 EtherJar - 以太坛子 EtherJar - 以太坛子 EtherJar - 以太坛子

Framework agnostic modular Java 8+ integration library for Ethereum blockchains

  • Latest Stable Version: 0.10.0
  • Latest Snapshot Version: 0.11.0-SNAPSHOT

Architecture

  • Low-level JSON-RPC API
  • Transport data-layer
    • IPC (not implemented yet)
    • HTTP
    • WebSockets
    • gRPC
  • High-level Java 8 API (in progress)

Modules

Structure of dependencies between modules:

  • etherjar-abi
    • etherjar-domain
    • etherjar-hex
  • etherjar-domain
  • etherjar-hex
  • etherjar-rlp
  • etherjar-rpc-api
    • etherjar-domain
    • etherjar-hex
  • etherjar-rpc-emerald
    • etherjar-rpc-api
  • etherjar-rpc-http
    • etherjar-rpc-api
    • etherjar-domain
    • etherjar-hex
  • etherjar-rpc-ws
    • etherjar-rpc-api
  • etherjar-solidity
    • etherjar-abi
    • etherjar-domain
  • etherjar-tx
    • etherjar-rlp
    • etherjar-domain
  • etherjar-contract
    • etherjar-abi
    • etherjar-domain
    • etherjar-rpc-api
  • etherjar-erc20
    • etherjar-abi
    • etherjar-domain
    • etherjar-contract

where

  • etherjar-abi – Smart contract Application Binary Interface (ABI)
  • etherjar-contract – Methods to organize contract call
  • etherjar-domain – Core module contains pure domain logic (Address, Block, Transaction, Wei and so on)
  • etherjar-erc20 – Classes to simplify use of ERC-20 tokens
  • etherjar-hex – Hexadecimal encoding and encoding utils for String, BigInteger, byte arrays
  • etherjar-rlp – Reading and writing RLP (Recursive Length Prefix) encoded data
  • etherjar-rpc-api – JSON-RPC API generic implementation
  • etherjar-rpc-emerald – gRPC transport, see Emerald Dshackle
  • etherjar-rpc-http – HTTP transport implementation for JSON-RPC API data-layer
  • etherjar-rpc-ws – WebSocket transport to subscribe to new blocks
  • etherjar-solidity – Thin wrapper around solc Solidity compiler
  • etherjar-tx – Read, verify and manipulate Transactions

Usage

Maven

<repositories>     <repository>       <id>etherjar</id>       <url>https://dl.bintray.com/infinitape/etherjar</url>     </repository> </repositories>  <dependency>   <groupId>io.infinitape</groupId>   <artifactId>etherjar-rpc-http</artifactId>   <version>0.9.0</version> </dependency>

Gradle

repositories {     maven {         url  "https://dl.bintray.com/infinitape/etherjar"      } }  dependencies {     compile 'io.infinitape:etherjar-rpc-http:0.9.0' }

Examples

How to call web3_clientVersion low-level JSON-RPC API method:

public class GetClientVersion {     public static void main(String[] args)             throws URISyntaxException, IOException, ExecutionException, InterruptedException {                 try (RpcTransport transport = HttpRpcTransport.newBuilder().connectTo("http://127.0.0.1:8545").build()) {             RpcClient client = new DefaultRpcClient(transport);             Future<String> req = client.execute(Commands.web3().clientVersion());              System.out.println(String.format("Client version: %s", req.get()));         }     } }

How to call eth_gasPrice low-level JSON-RPC API method:

public class GetGasPrice {      public static void main(String[] args)             throws URISyntaxException, IOException, ExecutionException, InterruptedException {          try (RpcTransport transport = HttpRpcTransport.newBuilder().connectTo("http://127.0.0.1:8545").build()) {             RpcClient client = new DefaultRpcClient(transport);             Future<Wei> req = client.execute(Commands.eth().getGasPrice());              System.out.println(String.format("Gas Price: %s Ether", req.get().toEthers(12)));         }     } }

Documentation

  • Reference Guide

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.

Licence

Apache 2.0


EtherJar

EtherJar - 以太坛子 EtherJar - 以太坛子 EtherJar - 以太坛子 EtherJar - 以太坛子

Framework agnostic modular Java 8+ integration library for Ethereum blockchains

  • Latest Stable Version: 0.10.0
  • Latest Snapshot Version: 0.11.0-SNAPSHOT

Architecture

  • Low-level JSON-RPC API
  • Transport data-layer
    • IPC (not implemented yet)
    • HTTP
    • WebSockets
    • gRPC
  • High-level Java 8 API (in progress)

Modules

Structure of dependencies between modules:

  • etherjar-abi
    • etherjar-domain
    • etherjar-hex
  • etherjar-domain
  • etherjar-hex
  • etherjar-rlp
  • etherjar-rpc-api
    • etherjar-domain
    • etherjar-hex
  • etherjar-rpc-emerald
    • etherjar-rpc-api
  • etherjar-rpc-http
    • etherjar-rpc-api
    • etherjar-domain
    • etherjar-hex
  • etherjar-rpc-ws
    • etherjar-rpc-api
  • etherjar-solidity
    • etherjar-abi
    • etherjar-domain
  • etherjar-tx
    • etherjar-rlp
    • etherjar-domain
  • etherjar-contract
    • etherjar-abi
    • etherjar-domain
    • etherjar-rpc-api
  • etherjar-erc20
    • etherjar-abi
    • etherjar-domain
    • etherjar-contract

where

  • etherjar-abi – Smart contract Application Binary Interface (ABI)
  • etherjar-contract – Methods to organize contract call
  • etherjar-domain – Core module contains pure domain logic (Address, Block, Transaction, Wei and so on)
  • etherjar-erc20 – Classes to simplify use of ERC-20 tokens
  • etherjar-hex – Hexadecimal encoding and encoding utils for String, BigInteger, byte arrays
  • etherjar-rlp – Reading and writing RLP (Recursive Length Prefix) encoded data
  • etherjar-rpc-api – JSON-RPC API generic implementation
  • etherjar-rpc-emerald – gRPC transport, see Emerald Dshackle
  • etherjar-rpc-http – HTTP transport implementation for JSON-RPC API data-layer
  • etherjar-rpc-ws – WebSocket transport to subscribe to new blocks
  • etherjar-solidity – Thin wrapper around solc Solidity compiler
  • etherjar-tx – Read, verify and manipulate Transactions

Usage

Maven

<repositories>     <repository>       <id>etherjar</id>       <url>https://dl.bintray.com/infinitape/etherjar</url>     </repository> </repositories>  <dependency>   <groupId>io.infinitape</groupId>   <artifactId>etherjar-rpc-http</artifactId>   <version>0.9.0</version> </dependency>

Gradle

repositories {     maven {         url  "https://dl.bintray.com/infinitape/etherjar"      } }  dependencies {     compile 'io.infinitape:etherjar-rpc-http:0.9.0' }

Examples

How to call web3_clientVersion low-level JSON-RPC API method:

public class GetClientVersion {     public static void main(String[] args)             throws URISyntaxException, IOException, ExecutionException, InterruptedException {                 try (RpcTransport transport = HttpRpcTransport.newBuilder().connectTo("http://127.0.0.1:8545").build()) {             RpcClient client = new DefaultRpcClient(transport);             Future<String> req = client.execute(Commands.web3().clientVersion());              System.out.println(String.format("Client version: %s", req.get()));         }     } }

How to call eth_gasPrice low-level JSON-RPC API method:

public class GetGasPrice {      public static void main(String[] args)             throws URISyntaxException, IOException, ExecutionException, InterruptedException {          try (RpcTransport transport = HttpRpcTransport.newBuilder().connectTo("http://127.0.0.1:8545").build()) {             RpcClient client = new DefaultRpcClient(transport);             Future<Wei> req = client.execute(Commands.eth().getGasPrice());              System.out.println(String.format("Gas Price: %s Ether", req.get().toEthers(12)));         }     } }

Documentation

  • Reference Guide

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.

Licence

Apache 2.0

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/16863.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计EtherJar – 以太坛子

提供最优质的资源集合

立即查看 了解详情