File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,66 @@ web3初学者
1515## Notes
1616
1717<!-- Content_START -->
18+ # 2025-08-18
19+
20+ 今日总结:
21+
22+ 一、测试网的作用
23+
24+ 目的:验证合约功能、安全性,避免主网部署出错和浪费。
25+
26+ 代币:测试网用无价值的 ETH,可免费获取,无经济风险。
27+
28+ 二、常用测试网
29+
30+ Sepolia:主流 PoS 测试网,最接近主网,适合部署前验证。
31+
32+ Holesky:用于验证者、质押协议和大规模测试。
33+
34+ 三、获取测试币(Sepolia ETH)
35+
36+ 准备钱包:使用 MetaMask,切换网络至 Sepolia;
37+
38+ 领取方式:
39+
40+ 访问:https://sepolia-faucet.pk910.de/
41+
42+ 粘贴地址 → 点击 Start Mining → 等待领取。
43+
44+ 四、使用 Remix 部署合约
45+
46+ 连接钱包:在 Remix 选择 Injected Provider - MetaMask;
47+
48+ 编译合约:在 Solidity Compiler 面板点击 Compile;
49+
50+ 部署合约:
51+
52+ 切换回 Deploy 面板;
53+
54+ 点击 Deploy,MetaMask 弹窗确认;
55+
56+ Remix 输出部署地址和交易哈希。
57+
58+ 五、在 Etherscan 验证合约
59+
60+ 网址:https://sepolia.etherscan.io
61+
62+ 查询方式:
63+
64+ 使用交易哈希查看部署详情;
65+
66+ 使用合约地址查看代码、事件、调用记录等。
67+
68+ 六、交互与验证
69+
70+ 在 Remix 中调用合约函数(如 leaveMessage);
71+
72+ 查看 MetaMask 提交交易;
73+
74+ 前往 Etherscan 查看交易记录和事件日志,验证执行效果。
75+
76+ 是否还需要进一步浓缩为图示流程或导出文
77+
1878# 2025-08-15
1979
2080今日总结:
You can’t perform that action at this time.
0 commit comments