TypeScript MIT

ethers-tutorial

Ethers.js web3快速入门教程;Ethers.js web3 Beginner's Tutorial

L

liuzi6612

Dernière activité 25 mai 2026
liuzi6612/ethers-tutorial

192

étoiles

27

forks

0

issues ouvertes

docusaurusethereumethersethersjsweb3

Ce README est souvent en anglais.

Ethers.js v6 快速入门教程

概述

本教程是基于 Ethers.js v6 编写的,旨在帮助开发者快速掌握 Ethers.js 的使用方法。

你不一定要学习 Ethers.js,你也可以了解 WEB3 和 如何与以太坊进行交互。

https://ethersv6.netlify.app 在线阅读教程可以直接运行与以太坊进行交互,方便你 零 代码编写学习。

目录

快速入门

第一章: 基础概念了解 - Ethers.js

第二章: 准备工作 - 获取配置以方便后续快速学习

第三章: Provider 类 - 连接到以太坊

第四章: Contract 类 - 读取合约信息

第五章: Utils - 常用工具合集

第六章: 钱包 - 创建随机钱包

第七章: 钱包 - 将钱包连接到网络

第八章: 转账 - 使用 ETH 进行转账

第九章: 转账 - 使用 ERC-20 进行转账

第十章: 事件监听与过滤

第十一章: 异常处理

第十二章: 连接 MetaMask 钱包

第十三章: 连接 MetaMask 钱包 - 获取 Signer

进阶

第一章: Interface 类 - Interface 常用操作

第二章: Multicall3 批量查询

第三章: ENS - 注册属于自己的 ENS 域名

第四章: 流行钱包 - 判断安装与授权

第五章: 处理输入安全

实战

第一章: dApp - 编写简易 dApp 应用

第二章: 部署合约 - 部署自己的合约代币

其他

水龙头

Gas 手续费

在线阅读

https://ethersv6.netlify.app

WEB3 相关资源可以从这里找到

运行

$ git clone --depth=1 https://github.com/liuzi6612/ethers-tutorial.git
$ pnpm i
$ npm run start

支持

编写不易,如果觉得本教程对您有用,可以请作者喝杯咖啡。

LICENSE

只要保持原作者署名,您可以自由地阅读、分享、修改。

Projets similaires

我最近在重新学ethers.js,巩固一下细节,也写一个“WTF Ethers.js极简入门”,供小白们使用,每周更新1-3讲。Now supports English! 官网: https://wtf.academy

JavaScriptethereumethersethersjs
WWTFAcademy
3,5 k étoiles576

Complete Ethereum library and wallet implementation in JavaScript.

TypeScriptblockchainethereumethers
Eethers-io
8,7 k étoiles2,1 k

欢迎来到 Web3 世界,这里汇集了大量 Web3 示例项目和高质量学习资源。加入我们,和一百万开发者同行,一起探索并塑造未来世界的繁荣景象。立刻行动,开启您的 Web3 之旅!

TypeScriptairdropairdrop-freeanchor
Lluzhenqian
1,7 k étoiles250