<p align="center">
<img src="assets/logo/web3js.jpg" width="300" alt="web3.js" />
</p>
# Web3.js
[![Dependency Status][downloads-image]][npm-url] ![Unit Test Coverage](https://img.shields.io/codecov/c/github/web3/web3.js/4.x?label=unit%20test%20coverage)
![Commit Activity](https://img.shields.io/github/commit-activity/m/web3/web3.js/4.x?label=commit%20activity%20on%204.x)
![Contributors](https://img.shields.io/github/contributors/web3/web3.js?label=contributors%20on%20all%20branches)
![ES Version](https://img.shields.io/badge/ES-2020-yellow)
![Node Version](https://img.shields.io/badge/node-14.x-green)
Web3.js is a TypeScript implementation of the [Ethereum JSON RPC API](https://eth.wiki/json-rpc/API) and related tooling maintained by [ChainSafe Systems](https://chainsafe.io).
## Installation
You can install the package either using [NPM](https://www.npmjs.com/package/web3) or using [Yarn](https://yarnpkg.com/package/web3)
> If you wanna checkout latest bugfix or feature, use `npm install web3@dev`
### Using NPM
```bash
npm install web3
```
### Using Yarn
```bash
yarn add web3
```
## Getting Started
- :writing_hand: If you have questions [submit an issue](https://github.com/ChainSafe/web3.js/issues/new/choose) or join us on [Discord](https://discord.gg/yjyvFRP)
![Discord](https://img.shields.io/discord/593655374469660673.svg?label=Discord&logo=discord)
## Prerequisites
- :gear: [NodeJS](https://nodejs.org/) (LTS/Fermium)
- :toolbox: [Yarn](https://yarnpkg.com/)/[Lerna](https://lerna.js.org/)
## Migration Guide
- [Migration Guide from Web3.js 1.x to 4.x](https://docs.web3js.org/guides/web3_upgrade_guide/x/)
Breaking changes are listed in migration guide and its first step for migrating from Web3.js 1.x to 4.x. If there is any question or discussion feel free to ask in [Discord](https://discord.gg/yjyvFRP), and in case of any bug or new feature request [open issue](https://github.com/web3/web3.js/issues/new) or create a pull request for [contributions](https://github.com/web3/web3.js/blob/4.x/CONTRIBUTIONS.md).
## Useful links
- [Web3 tree shaking support guide](https://docs.web3js.org/guides/advanced/web3_tree_shaking_support_guide/)
- [React App Example](https://github.com/ChainSafe/web3js-example-react-app)
## Architecture Overview
| Package | Version | License | Docs | Description |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| [web3](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3%2Fpackage.json)](https://www.npmjs.com/package/web3) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3) | :rotating_light: Entire Web3.js offering (includes all packages) |
| [web3-core](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-core) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-core%2Fpackage.json)](https://www.npmjs.com/package/web3-core) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-core) | Core functions for web3.js packages |
| [web3-errors](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-errors) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-errors%2Fpackage.json)](https://www.npmjs.com/package/web3-core) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-errors) | Errors Objects |
| [web3-eth](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-eth) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-eth%2Fpackage.json)](https://www.npmjs.com/package/web3-eth) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-eth) | Modules to interact with the Ethereum blockchain and smart contracts |
| [web3-eth-abi](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-eth-abi) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-eth-abi%2Fpackage.json)](https://www.npmjs.com/package/web3-eth-abi) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-eth-abi) | Functions for encoding and decoding EVM in/output |
| [web3-eth-accounts](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-eth-accounts) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-eth-accounts%2Fpackage.json)](https://www.npmjs.com/package/web3-eth-accounts) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-eth-accounts) | Functions for managing Ethereum accounts and signing |
| [web3-eth-contract](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-eth-contract) | [![npm](https://img.shields.io/github/package-json/v/web3/web3.js/4.x?filename=packages%2Fweb3-eth-contract%2Fpackage.json)](https://www.npmjs.com/package/web3-eth-contract) | [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0) | [![documentation](https://img.shields.io/badge/typedoc-blue)](https://docs.web3js.org/api/web3-eth-contract) | The contract package contained in [web3-eth](https://github.com/ChainSafe/web3.js/tree/4.x/packages/web3-eth) |
| [web3-eth-ens](https://github.com/ChainS
没有合适的资源?快使用搜索试试~ 我知道了~
以太坊 JavaScript API
共1481个文件
ts:768个
json:214个
js:175个
需积分: 5 0 下载量 60 浏览量
2023-10-30
18:48:21
上传
评论
收藏 9.46MB ZIP 举报
温馨提示
Web3.js 是以太坊 JSON RPC API的 TypeScript 实现以及由ChainSafe Systems维护的相关工具。 网络3 新项目管理 许可证:LGPL v3 文档 整个 Web3.js 产品(包括所有包) web3核心 新项目管理 许可证:LGPL v3 文档 web3.js 包的核心功能 web3 错误 新项目管理 许可证:LGPL v3 文档 错误对象 web3-eth 新项目管理 许可证:LGPL v3 文档 与以太坊区块链和智能合约交互的模块 web3-eth-abi 新项目管理 许可证:LGPL v3 文档 用于编码和解码 EVM 输入/输出的函数 web3-eth-帐户 新项目管理 许可证:LGPL v3 文档 管理以太坊账户和签名的功能 web3-eth-合约 新项目管理 许可证:LGPL v3 文档 web3-eth中包含的合约包
资源推荐
资源详情
资源评论
收起资源包目录
以太坊 JavaScript API (1481个子文件)
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
web3js.ai 262KB
build 26B
.eslintrc.cjs 182B
CODEOWNERS 317B
algolia.css 17KB
custom.css 1KB
styles.css 583B
cypress 23B
cypress 23B
cypress 23B
cypress 23B
cypress 23B
.editorconfig 187B
.env 30B
.eslintignore 91B
.eslintignore 63B
.eslintignore 55B
.eslintignore 54B
.eslintignore 37B
.eslintignore 37B
.eslintignore 37B
.eslintignore 37B
.eslintignore 37B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.eslintignore 34B
.gitignore 492B
.gitignore 299B
.gitignore 13B
.gitignore 2B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
favicon.ico 149KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
web3js.jpg 78KB
共 1481 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
Web面试那些事儿
- 粉丝: 5776
- 资源: 101
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功