exploring-blockchain-data
Installation
SKILL.md
Exploring Blockchain Data
Overview
Query and analyze blockchain data across multiple EVM-compatible networks including Ethereum, Polygon, Arbitrum, Optimism, and BSC. Supports transaction lookups, address balance checks, block inspection, token balance queries, transaction history retrieval, and whale wallet tracking via a unified CLI.
Prerequisites
- Python 3.8+ with
requestsandweb3libraries installed (pip install requests web3) - Etherscan API key (free tier provides 5 requests/second; set via
ETHERSCAN_API_KEYenvironment variable) - Optional: API keys for Polygonscan, Arbiscan, and other chain-specific explorers for higher rate limits
blockchain_explorer.pyCLI script,chain_client.py, andtoken_resolver.pymodules available in the plugin directory- RPC endpoint access (public endpoints work; dedicated providers like Alchemy, Infura, Chainstack, or QuickNode recommended for reliability)
Instructions
- Set the Etherscan API key as an environment variable:
export ETHERSCAN_API_KEY=<key>to unlock higher rate limits beyond the default 5 requests/second. - Run
python blockchain_explorer.py tx <hash>to look up a transaction by hash, returning status, block number, from/to addresses, value transferred, and gas details. - Append
--detailedto the transaction query to decode the function call, identify the interacting protocol, and display input parameters. - Specify
--chain polygon,--chain arbitrum, or--chain bscto query transactions on alternative EVM chains when the hash is not found on Ethereum.
Related skills