← 返回
效率工具 中文

Ethereum

Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges.
协助以太坊交易、Gas优化、代币授权及L2跨链桥。
ivangdavila
效率工具 clawhub v1.0.0 1 版本 99781.7 Key: 无需
★ 2
Stars
📥 1,788
下载
💾 33
安装
1
版本
#latest

概述

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_gasPrice RPC — 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... vs 0xabc... 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 22:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,355 📥 318,021
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,457
productivity

Baidu web search

ide-rea
使用百度AI搜索引擎(BDSE)进行网络搜索。适用于获取实时信息、文档资料或研究课题。
★ 237 📥 105,448