WEB3J (
org.web3j
Is the Java version of the Ethereum JSON RPC Interface protocol wrapper implementation, if you need to plug your Java application or Android app into Ethereum, or want to develop a wallet application in Java, then use WEB3J.
WEB3J's functionality is quite complete, in addition to the complete encapsulation of Ethereum JSON RPC, it also includes complete account management and transaction management implementations.
But the biggest problem with WEB3J is the poor documentation. If you want to quickly learn how to use WEB3J to develop a Java application or Android app that supports Ethereum, you can access this web3j tutorial, which is the fastest learning path currently known.
WEB3J's functions are organized in different packages, showing org.web3j
the main packages and the dependencies between them:
Core: The encapsulation of the JSON RPC protocol is primarily implemented by the package, which relies on the functionality of the key org.web3j.core
org.web3j.crypto
associated with the signature provided by the package, and org.web3j.abi
the Java/solidity type mapping support provided by the package.
Console: The org.web3j.console
package implements a command-line program that can be run separately web3j
, and we will use it to generate the Java wrapper class for the solidity contract, where the org.web3j.codegen
package implements code generation from the ABI to the Java wrapper class.
node-related : The org.web3j.infura
package encapsulates the HTTP Access service interface to the Infura public node,
org.web3j.geth
And the org.web3j.parity
management interfaces of the two commonly used Ethereum node software are encapsulated separately.
Original: http://blog.hubwiz.com/2018/06/22/web3j-packages/
WEB3J Ethereum Java Development Package