AgentSkillsCN

evm-gas-price

当用户询问“Gas 价格”“Gas 费是多少”“当前 Gas 价格”“查看 Gas 手续费”,或提到在 EVM 链(以太坊、Polygon、Arbitrum 等)上查看 Gas 成本时,可使用此技能。可选链参数。

SKILL.md
--- frontmatter
name: evm-gas-price
description: Use this skill when the user asks "gas price", "how much is gas", "current gas", "check gas fees", or mentions checking gas costs on EVM chains (Ethereum, Polygon, Arbitrum, etc.). Optional chain parameter.
allowed-tools: Bash

EVM Gas Price Fetcher

Gets current gas price for an EVM blockchain network.

Usage

Run the script with optional chain:

bash
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-gas-price.sh [chain]

Arguments

  • chain (optional): Chain name - ethereum (default), polygon, arbitrum, optimism, base, bsc

Supported Chains

ChainAliasesExplorer
ethereumeth, mainnetEtherscan
polygonmaticPolygonscan
arbitrumarbArbiscan
optimismopOptimism Etherscan
base-Basescan
bscbinanceBSCScan

Requirements

  • cast (Foundry) must be installed
  • RPC URL is optional (uses PublicNode fallback)

Examples

bash
# Get gas price on Ethereum
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-gas-price.sh

# Get gas price on Polygon
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-gas-price.sh polygon

Note

For Solana fees, use the sol-fees skill instead.