返回 Skill 列表
extension
分类: 开发与工程无需 API Key

evm-block-info

当用户询问“区块信息”、“区块内有什么”、“最新区块”、“获取区块详情”,或提到在EVM链(如以太坊、Polygon、Arbitrum等)上查看区块数据时使用此技能。可选参数包括区块编号/标签和链名称。

person作者: jakexiaohubgithub

EVM Block Info Fetcher

Gets block information from an EVM blockchain network.

Usage

Run the script with optional block and chain:

${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-block-info.sh [block] [chain]

Arguments

  • block (optional): Block number, hex, or tag (latest, pending, earliest, finalized, safe). Default: latest
  • chain (optional): Chain name - ethereum (default), polygon, arbitrum, optimism, base, bsc

Supported Chains

| Chain | Aliases | Explorer | |-------|---------|----------| | ethereum | eth, mainnet | Etherscan | | polygon | matic | Polygonscan | | arbitrum | arb | Arbiscan | | optimism | op | Optimism Etherscan | | base | - | Basescan | | bsc | binance | BSCScan |

Requirements

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

Examples

# Get latest block on Ethereum
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-block-info.sh

# Get specific block on Polygon
${CLAUDE_PLUGIN_ROOT}/scripts/crypto-evm-block-info.sh 50000000 polygon

Note

For Solana slot/block info, use the sol-slot-info skill instead.