工具速查总览
工具速查总览
本页内容正在整理中,欢迎贡献。
概述
本章汇总以太坊开发者日常需要的工具和资源,包括测试网水龙头、常用合约地址、Gas 优化技巧和各类实用工具链接,方便快速查阅。
主要内容
快速索引
| 工具类别 | 文档 |
|---|---|
| 测试网水龙头 | faucets |
| 常用合约地址 | contract-addresses |
| Gas 优化技巧 | gas-optimization |
开发工具速查
编译与框架:
| 工具 | 用途 | 链接 |
|---|---|---|
| Hardhat | JS/TS 开发框架 | hardhat.org |
| Foundry | Rust 开发框架 | getfoundry.sh |
| Remix IDE | 在线 IDE | remix.ethereum.org |
| Solidity | 智能合约语言 | soliditylang.org |
链上交互:
| 工具 | 用途 | 链接 |
|---|---|---|
| viem | TypeScript 以太坊库 | viem.sh |
| ethers.js | JS 以太坊库 | ethers.io |
| wagmi | React Hooks | wagmi.sh |
| cast | Foundry CLI 工具 | book.getfoundry.sh |
区块浏览器:
| 网络 | 浏览器 |
|---|---|
| 以太坊主网 | etherscan.io |
| Sepolia | sepolia.etherscan.io |
| Optimism | optimistic.etherscan.io |
| Arbitrum | arbiscan.io |
| Base | basescan.org |
安全工具:
| 工具 | 用途 |
|---|---|
| Slither | 静态分析,检测常见漏洞 |
| Mythril | 符号执行安全分析 |
| Echidna | 模糊测试 |
| OpenZeppelin Defender | 合约监控与自动化 |
| Tenderly | 交易模拟与调试 |
Gas 分析:
| 工具 | 用途 |
|---|---|
forge snapshot | Foundry Gas 快照 |
hardhat-gas-reporter | Hardhat 测试 Gas 报告 |
| ETH Gas Station | Gas 价格追踪 |
常用 CLI 命令速查
# Foundryforge build # 编译forge test # 运行测试forge test --gas-report # Gas 报告forge script script/Deploy.s.sol --broadcast --verify # 部署并验证cast call <address> "函数签名()" <args> # 调用合约cast send <address> "函数签名()" <args> --private-key $PK # 发送交易cast balance <address> # 查询余额cast block latest # 查询最新区块anvil # 启动本地测试链
# Hardhatnpx hardhat compilenpx hardhat testnpx hardhat run scripts/deploy.ts --network sepolianpx hardhat verify --network sepolia <address> <args>npx hardhat node # 启动本地节点实用在线工具
| 工具 | 用途 | 链接 |
|---|---|---|
| ABI Encoding | 手动编码/解码 ABI | abi.hashex.org |
| Chainlist | 查找网络 RPC | chainlist.org |
| OpenZeppelin Wizard | 可视化生成合约 | wizard.openzeppelin.com |
| Uint256 Converter | 单位转换 | ETH ↔ Gwei ↔ Wei |
| 4byte Directory | 函数选择器查找 | 4byte.directory |