Web3j is a modular Java and Android library for Ethereum nodes, wallets, and smart contracts. It exposes JSON-RPC over HTTP and IPC with reactive APIs and codegen from Solidity.
Overview
Web3j lets JVM developers talk to Ethereum networks without writing low-level client plumbing. It provides a complete JSON-RPC client over HTTP and IPC, wallet support, and tooling to generate type-safe Java wrappers from Solidity or Truffle contract definitions for deploy, transact, and call flows.
The stack includes reactive-functional APIs for event filters, support for Geth and Parity personal APIs, command-line utilities, and Android compatibility with IPC omitted on mobile. Extensions cover JP Morgan Quorum via web3j-quorum and EEA privacy features implemented on Hyperledger Besu.
Dependencies include RxJava, OkHttp, Jackson, Bouncy Castle, and JavaPoet for generated contract classes. Developers add the core artifact through Maven or Gradle, or scaffold projects with the Web3j CLI installer script. Build-tool plugins can generate Java sources from Solidity as part of a normal compile pipeline.
Web3j is maintained in the open-source ecosystem under Hyperledger, with documentation and optional commercial support from Web3 Labs.
Key features
- Ethereum JSON-RPC over HTTP and IPC
- Auto-generated Java contract wrappers
- Reactive APIs for event filters
- Ethereum wallet support
- Android-compatible core library
- Web3j CLI for project scaffolding
- Maven and Gradle integration
- Quorum and Besu privacy extensions
Use cases
- Java backend Ethereum integration
- Android apps calling smart contracts
- Automated Solidity-to-Java binding
- Enterprise Quorum or Besu deployments