AgentSkillsCN

evm-block-info

Jest测试模式、反模式与质量准则

SKILL.md
--- frontmatter
name: evm-block-info
description: Use this skill when the user asks "block info", "what's in block", "latest block", "get block details", or mentions viewing block data on EVM chains (Ethereum, Polygon, Arbitrum, etc.). Optional block number/tag and chain parameter.
allowed-tools: Bash

EVM Block Info Fetcher

Gets block information from an EVM blockchain network.

Usage

Run the script with optional block and chain:

bash
${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

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 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.