Ethereum
Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges.
Best use case
Ethereum is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges.
Teams using Ethereum should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ethereum/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Ethereum Compares
| Feature / Agent | Ethereum | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Assist with Ethereum transactions, gas optimization, token approvals, and L2 bridges.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## 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
Related Skills
ethereum-jsonrpc-skill
Operate Ethereum execution JSON-RPC through UXC with the official execution OpenRPC schema, public EVM read methods, and eth_subscribe pubsub guardrails.
ethereum-transaction-analyzer
AI agent skill for analyzing on-chain transactions, detecting MEV, and tracing fund flows.
8004-skill
ERC-8004 Trustless Agents - Register and manage AI agent identities on TRON and BSC blockchains with on-chain reputation tracking
8004-MCP - Agent Registry Protocol
Multi-chain MCP server for ERC-8004 Agent Registry. Query agents, reputation, and feedback across Solana + EVM chains.
supurr
Backtest, deploy, and monitor trading bots on Hyperliquid. Supports Grid, DCA, and Spot-Perp Arbitrage strategies across Native Perps, Spot markets (USDC/USDH), and HIP-3 sub-DEXes.
senpi-skills
Agent Skills for autonomous crypto trading on Hyperliquid — trailing stops, market scanning, position management, and more.
sdks
Official Azex SDKs — TypeScript, Python, MCP Server, CLI for the crypto-native LLM API gateway
perp-cli
Multi-DEX perpetual futures CLI + MCP server — Pacifica (Solana), Hyperliquid, Lighter (Ethereum). 18 MCP tools for AI-powered trading
okx-exchange-websocket-skill
Subscribe to OKX public exchange WebSocket channels through UXC raw WebSocket mode for ticker, trade, book, and candle events with explicit subscribe frames.
okx-wallet-portfolio
This skill should be used when the user asks to 'check my wallet balance', 'show my token holdings', 'how much OKB do I have', 'what tokens do I have', 'check my portfolio value', 'view my assets', 'how much is my portfolio worth', 'what\'s in my wallet', or mentions checking wallet balance, total assets, token holdings, portfolio value, remaining funds, DeFi positions, or multi-chain balance lookup. Supports XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use for general programming questions about balance variables or API documentation. Do NOT use when the user is asking how to build or integrate a balance feature into code.
okx-security
Use this skill for security scanning: check transaction safety, is this transaction safe, pre-execution check, security scan, token risk scanning, honeypot detection, DApp/URL phishing detection, message signature safety, malicious transaction detection, approval safety checks, token approval management. Triggers: 'is this token safe', 'check token security', 'honeypot check', 'scan this tx', 'scan this swap tx', 'tx risk check', 'is this URL a scam', 'check if this dapp is safe', 'phishing site check', 'is this signature safe', 'check this signing request', 'check my approvals', 'show risky approvals', 'revoke approval', 'check if this approve is safe', token authorization, ERC20 allowance, Permit2. Covers token-scan, dapp-scan, tx-scan (EVM+Solana pre-execution), sig-scan (EIP-712/personal_sign), approvals (ERC-20/Permit2). Chinese: 安全扫描, 代币安全, 蜜罐检测, 貔貅盘, 钓鱼网站, 交易安全, 签名安全, 代币风险, 授权管理, 授权查询, 风险授权, 代币授权. Do NOT use for wallet balance/send/history — use okx-agentic-wallet.
okx-onchain-gateway
This skill should be used when the user asks to 'broadcast transaction', 'send tx', 'estimate gas', 'simulate transaction', 'check tx status', 'track my transaction', 'get gas price', 'gas limit', 'broadcast signed tx', or mentions broadcasting transactions, sending transactions on-chain, gas estimation, transaction simulation, tracking broadcast orders, or checking transaction status. Covers gas price, gas limit estimation, transaction simulation, transaction broadcasting, and order tracking across XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use for swap quote or execution - use okx-dex-swap instead. Do NOT use for general programming questions about transaction handling.