Other

项目介绍

LFDT-web3j/web3j 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Other 许可证,目前获得 5.4k 个 Star、1.8k 次 Fork。

仓库全名
LFDT-web3j/web3j
开源许可证
Other
Star 数
5.4k
Fork 数
1.8k
未关闭 Issue
156

README 摘要

Web3j: Web3 Java Ethereum Dapp API ================================== Web3j is a lightweight, highly modular, reactive, type safe Java and Android library for working with Smart Contracts and integrating with clients (nodes) on the Ethereum network: This allows you to work with the Ethereum blockchain, without the additional overhead of having to write your own integration code for the platform. The Java and the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

web3j 用什么语言开发?

主要使用 Java 编写,采用 Other 许可证,目前有 5.4k 个 Star。

web3j 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 web3j 的源码?

可以直接克隆仓库:git clone https://github.com/LFDT-web3j/web3j.git;安装与运行步骤见仓库 README。

web3j 最近还在维护吗?

仓库最近一次更新为 6月26日,当前有 156 个未关闭 Issue;Star 数为 5.4k,可作为社区活跃度的参考。

简要分析

热度分
14320
价值分
4295
活跃状态
活跃

语言占比

Dockerfile
Java
JavaScript
Shell
Solidity

Release

README

Web3j: Web3 Java Ethereum Dapp API

Documentation Status build status codecov Discord Gurubase

Web3j is a lightweight, highly modular, reactive, type safe Java and Android library for working with Smart Contracts and integrating with clients (nodes) on the Ethereum network:

image

This allows you to work with the Ethereum blockchain, without the additional overhead of having to write your own integration code for the platform.

The Java and the Blockchain talk provides an overview of blockchain, Ethereum and Web3j.

NEW! Get involved!

Since Web3J moved under Hyperledger we started to do Web3J Contributors calls every 2 weeks! Subscribe to our community page and to see check our call schedule. Your contribution matters!

Features

It has five runtime dependencies:

It also uses JavaPoet for generating smart contract wrappers.

QuickStart

The simplest way to start your journey with Web3j is to create a project. We provide this functionality using the Web3j CLI. This latter can be installed as follows:

For Unix:

installer=$(mktemp) &&
curl --disable --proto '=https' --proto-redir '=https' --fail --show-error --silent --location https://get.web3j.io -o "$installer" &&
bash "$installer" && rm -f "$installer" && source ~/.web3j/source.sh

For Windows, in Powershell:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/hyperledger/web3j-installer/main/installer.ps1'))

Create a new project by running:

$ web3j new 

Or use our Maven or Gradle plugins to generate java files from Solidity contracts.

Please head to the Web3j Documentation for further instructions on using Web3j.

Maven

Java:

<dependency>
  <groupId>org.web3j</groupId>
  <artifactId>core</artifactId>
  <version>6.1.0</version>
</dependency>

Note: The Web3j Java binaries are compiled using Java 21. Java 21 or a more recent version is required to use Web3j as a dependency.

Android:

<dependency>
  <groupId>org.web3j</groupId>
  <artifactId>core</artifactId>
  <version>4.12.3-android</version>
</dependency>

Gradle

Java:

implementation ('org.web3j:core:6.1.0')

Android:

implementation ('org.web3j:core:4.12.3-android')

Build instructions

Web3j includes integration tests for running against a live Ethereum client. If you do not have a client running, you can exclude their execution as per the below instructions.

To run a full build (excluding integration tests):

$ ./gradlew check

To run the integration tests, you will need to set up these variables in order to pull the Docker images from the Docker Hub registry:

  • registry.username
  • registry.password

Then run the following command:

$ ./gradlew -Pintegration-tests=true :integration-tests:test

If you do not want the integration test to run:

$ ./gradlew -Pintegration-tests=false :test

Check the Docker client API for more information on configuration options.

Projects using Web3j

Alphawallet logo Linea logo ConsenSys logo ENS logo Hyperledger Besu logo Web3Auth logo Hedera logo Celo logo WalletConnect logo Argent logo Unstoppable Domains logo Fnality logo zksync logo

Commercial support and training

Commercial support and training is available from web3labs.com.

License

Apache 2.0

评论

暂无评论