简介
专业级以太坊链上操作助手,涵盖交易加速、Gas优化、授权管理与跨链桥接,适合高频DeFi用户与开发者
原始描述
Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges.
中文使用说明 来自收录源
核心用法
Ethereum 技能提供全栈式链上操作支持,覆盖从基础交易到高级风险管理的完整场景:
交易管理:通过 nonce 机制解决卡单问题——识别 pending 交易阻塞、执行同 nonce 高 Gas 替换、处理 nonce 缺口导致的永久性卡单状态。支持 MetaMask 风格的加速/取消操作逻辑。
Gas 优化:深度解析 EIP-1559 费用结构,指导 maxFeePerGas、maxPriorityFeePerGas 与 baseFee 的关系计算,提供实际成本估算方法,并指出钱包常见 20-50% 高估问题。
授权安全:ERC-20 无限授权风险评估,推荐 exact 额度授权与 revoke.cash 审计流程,强调授权持久性风险(即使换钱包,原地址授权仍有效)。
失败交易诊断:区分 pending 与 reverted 状态,识别滑点超限、截止时间过期、余额不足等常见 revert 原因,推荐 Tenderly 等模拟工具前置验证。
L2 跨链策略:解析 Optimistic rollup 7 天挑战期机制、ZK rollup 的 1-24 小时退出延迟,对比官方桥与第三方桥(Hop、Across)的时效/费用/风险权衡。
MEV 防护:识别三明治攻击特征,集成 Flashbots Protect、MEV Blocker 等隐私交易方案,对比 CoW Swap 等原生保护 DEX。
地址验证:ENS 过期检查、合约地址与 EOA 区分、假币合约识别等多层验证机制。
显著优点
- 场景完整度极高:覆盖 DeFi 用户 90% 以上的痛点场景,从新手卡单到资深 MEV 防护
- 时效性与实用性:EIP-1559、L2 演进、MEV 发展等前沿议题均有涉及
- 风险前置意识:授权管理、跨链等待期、MEV 攻击等均以"可能损失"而非"技术概念"呈现
潜在缺点与局限性
- 无实时数据接入:Gas 价格、链上状态需用户手动查询,无法主动推送"当前 base fee"或"您的 pending tx"提醒
- 交互深度有限:提供策略建议而非直接调用钱包 RPC,仍需用户手动执行 MetaMask/其他钱包操作
- 链覆盖范围:专注 Ethereum 主网及主流 L2,对 Alt-L1 或小众 L2 无支持
- 无私钥管理功能:纯粹信息型技能,无法代签名或代广播
适合人群
- DeFi 高频交易者:频繁遭遇 Gas 波动、交易卡单、MEV 损失的用户
- L2 迁移用户:需要从主网向 Optimism/Arbitrum/Base/zkSync 迁移资产的新手
- 安全敏感型持币者:希望系统管理代币授权、识别假币合约的长期持有者
- 开发者/产品经理:需要向用户解释链上机制的技术团队
常规风险
- 操作执行风险:技能提供策略但由用户手动执行,误解 nonce 替换逻辑可能导致双花或 Gas 浪费
- 时效性衰减:EIP-1559 参数、L2 桥设计、MEV 工具持续迭代,建议每季度核查推荐链接有效性
- 第三方服务依赖:revoke.cash、Flashbots Protect、Tenderly 等外部服务的可用性与安全性
- 无链上验证:技能无法验证用户输入地址的实际合约状态,需交叉核对 etherscan/etherscan 等官方工具
技能正文
name: Ethereum description: Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges. metadata: {"clawdbot":{"emoji":"⟠","os":["linux","darwin","win32"]}}
Nonce and Stuck Transactions
- Every Ethereum account has a nonce that increments with each transaction — if tx with nonce 5 is pending, nonces 6+ are blocked until 5 confirms
- To unstick: send a new tx with the SAME nonce and higher gas — this replaces the pending tx (even a 0 ETH self-transfer works)
- MetaMask "Speed up" and "Cancel" buttons do exactly this — they resubmit with same nonce and higher priority fee
- Nonce gaps cause permanent stuck state — if nonce 3 was never broadcast but 4 was, 4 will never confirm until 3 is sent
Gas (EIP-1559)
maxFeePerGas= max total you'll pay per gas unit.maxPriorityFeePerGas= tip to validator.baseFee= burned, set by protocol- Actual cost:
min(baseFee + priorityFee, maxFee) × gasUsed— unused gas is refunded, but failed txs still consume gas - Gas limit is separate from gas price — setting limit too low causes "out of gas" revert, but you still pay for gas used up to that point
- Check current base fee at etherscan.io/gastracker or via
eth_gasPriceRPC — wallets often overestimate by 20-50%
Token Approvals (Critical Security)
- ERC-20
approve()grants a contract permission to spend your tokens — many dApps request unlimited (type(uint256).max) approval - If that contract gets hacked, attacker can drain all approved tokens even years later — audit approvals at revoke.cash
- Recommend users approve only the exact amount needed, or revoke after each use
- Approvals persist forever until explicitly revoked — changing wallets doesn't help if the old address still has tokens
Failed Transactions
- A reverted transaction is mined and consumes gas — you pay even though nothing happened
- Common causes: slippage exceeded, deadline passed, insufficient token balance, contract paused
- "Transaction failed" in explorer means it executed but reverted — completely different from "pending" (not yet mined)
- Simulating transactions before sending (via Tenderly or wallet preview) catches most revert conditions
L2 Bridges and Withdrawals
- Optimistic rollups (Optimism, Arbitrum, Base) have 7-day withdrawal period to mainnet — this is not a bug, it's the security model
- ZK rollups (zkSync, Starknet) have faster finality but bridging back still takes 1-24 hours depending on liquidity
- Third-party bridges (Hop, Across) offer faster exits but charge fees and have smart contract risk
- Never bridge more than you can afford to wait 7 days for — or use a fast bridge and accept the fee
MEV Protection
- Public mempool transactions can be frontrun or sandwiched — especially swaps on DEXs
- Flashbots Protect RPC (protect.flashbots.net) hides transactions from public mempool until mined
- Private transaction options: MEV Blocker, Flashbots Protect, or DEXs with native protection (CoW Swap)
- Signs of sandwich attack: swap executed at worse price than quoted, with suspicious txs immediately before and after yours
Address Validation
- Ethereum addresses are case-insensitive but the checksum (mixed case) catches typos —
0xABC...vs0xabc...are the same address - ENS domains can expire — always verify current owner before sending to a .eth name
- Contract addresses vs EOA: contracts can reject ETH transfers or behave unexpectedly — check on etherscan if address has code
- Some tokens have multiple addresses (official + scam clones) — verify contract address on CoinGecko or project's official site
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。