exploring-blockchain-data
БесплатноЗапускает вложенные скриптыНе проверенProcess query and analyze blockchain data including blocks, transactions, and smart contracts. Use when querying blockchain data and transactions. Trigger…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
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. - Run
python blockchain_explorer.py address <address>to check the native token balance and total transaction count for a wallet. - Add
--history --limit 50to the address query to retrieve the most recent 50 transactions with timestamps, values, and counterparties. - Add
--tokensto the address query to list all ERC-20 token holdings with balances, symbols, and USD values via CoinGecko price resolution. - Run
python blockchain_explorer.py block latestto inspect the most recent block, orpython blockchain_explorer.py block <number>for a specific block. - Run
python blockchain_explorer.py token <wallet> <contract>to check the balance of a specific ERC-20 token at a wallet address, with automatic decimal and symbol resolution. - Export any query result in JSON or CSV format using
--format jsonor--format csvand redirect to a file for downstream processing. - Enable verbose mode with
--verboseto display API request URLs, response times, cache hit/miss status, and rate limit counters for debugging.
See references/implementation.md for the full four-step implementation workflow.
Output
- Transaction detail tables showing hash, chain, status, block number, from/to addresses, value, gas price (Gwei), gas limit, gas used, and gas cost
- Decoded transaction data with function name, protocol identification, and parsed input parameters (when
--detailedis used) - Address summary with native balance, transaction count, and explorer link
- Transaction history tables with timestamp, hash, from/to, value, and direction (in/out)
- Token balance listings with contract address, token name, symbol, raw balance, human-readable balance, and USD value
- Block details with block number, timestamp, transaction count, gas used, and miner/validator
- JSON (
output.json) or CSV (transactions.csv) export files for programmatic consumption
Error Handling
| Error | Cause | Solution |
|---|---|---|
Transaction not found |
Transaction pending in mempool, wrong chain selected, or invalid hash | Wait and retry for pending transactions; try --chain polygon, --chain arbitrum, --chain bsc; verify hash is 66 characters starting with 0x |
Explorer API error: Max rate limit reached |
Too many requests; no API key or quota exhausted | Wait 1-5 seconds and retry; set ETHERSCAN_API_KEY for higher limits; upgrade to paid tier for production use |
RPC error: execution timeout |
RPC endpoint overloaded or complex query timed out | Retry with a different RPC endpoint; use a dedicated provider (Alchemy, Infura, QuickNode); simplify the query |
Invalid address: 0xinvalid |
Address has wrong length, invalid checksum, or non-hex characters | Verify 42 characters with 0x prefix; use the checksummed version from a block explorer; convert to lowercase if checksum fails |
Contract source code not verified |
Contract source not published on the explorer | Use known function signature databases for decoding; check if the contract is a proxy and look up the implementation address |
Token: ??? (Unknown Token) |
Token too new, too obscure, or not tracked by CoinGecko | Check the token contract directly on the explorer; look up on a DEX (Uniswap, SushiSwap); manually specify decimals if known |
Price: N/A |
Token not listed on CoinGecko, API rate limited, or very low liquidity | Check |
Установить exploring-blockchain-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGrepGlobBash(crypto:explorer-*)Вложенные файлы
FAQ
Что делает скилл exploring-blockchain-data?
Process query and analyze blockchain data including blocks, transactions, and smart contracts. Use when querying blockchain data and transactions. Trigger with phrases like "explore blockchain", "query transactions", or "check on-chain data".
Как установить скилл exploring-blockchain-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл exploring-blockchain-data запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic