PRD: Blockchain Explorer CLI
Summary
One-liner: Query and analyze blockchain data including blocks, transactions, addresses, and smart contracts across multiple chains.
Domain: Cryptocurrency / Blockchain Analytics
Users: Developers, Analysts, Traders, Researchers
Problem Statement
Blockchain data is scattered across multiple explorers and APIs with inconsistent interfaces. Users need a unified CLI to query blocks, transactions, addresses, and contracts without switching between different blockchain explorers or writing custom scripts.
User Stories
As a developer, I want to query transaction details by hash, so that I can debug failed transactions or verify contract interactions.
As a trader, I want to check wallet balances and transaction history, so that I can track whale movements or verify my own transfers.
As an analyst, I want to fetch block data and network statistics, so that I can analyze network health and congestion.
As a researcher, I want to query smart contract state and events, so that I can analyze protocol behavior and token metrics.
Functional Requirements
- REQ-1: Query transaction details by hash (status, gas, value, input data)
- REQ-2: Fetch address balances (native + ERC20/ERC721 tokens)
- REQ-3: Get block information (number, timestamp, transactions, gas)
- REQ-4: Query smart contract read functions
- REQ-5: Fetch transaction history for addresses
- REQ-6: Support multiple chains (Ethereum, Polygon, BSC, Arbitrum, etc.)
- REQ-7: Decode transaction input data using ABI
- REQ-8: Display token transfers within transactions
API Integrations
| API |
Purpose |
Rate Limit |
| Etherscan |
Ethereum data, ABI, source code |
5/sec (free) |
| Infura/Alchemy |
RPC calls, real-time data |
100k/day (free) |
| CoinGecko |
Token prices for USD values |
10-30/min |
| Polygonscan |
Polygon chain data |
5/sec (free) |
| BSCScan |
BSC chain data |
5/sec (free) |
Success Metrics
- Transaction queries return complete data within 3 seconds
- Multi-chain support for top 5 EVM chains
- Error messages include actionable remediation steps
- Output formats: table, JSON, CSV
Non-Goals
- Real-time transaction monitoring (use whale-alert-monitor)
- Gas price optimization (use gas-fee-optimizer)
- Non-EVM chains (Solana, Bitcoin) in v1.0
- Private transaction decryption
1---2name: 027-prd-a7c2a9823description: PRD: Blockchain Explorer CLI4---5# PRD: Blockchain Explorer CLI67## Summary8**One-liner**: Query and analyze blockchain data including blocks, transactions, addresses, and smart contracts across multiple chains.9**Domain**: Cryptocurrency / Blockchain Analytics10**Users**: Developers, Analysts, Traders, Researchers1112## Problem Statement13Blockchain data is scattered across multiple explorers and APIs with inconsistent interfaces. Users need a unified CLI to query blocks, transactions, addresses, and contracts without switching between different blockchain explorers or writing custom scripts.1415## User Stories16171. **As a developer**, I want to query transaction details by hash, so that I can debug failed transactions or verify contract interactions.18192. **As a trader**, I want to check wallet balances and transaction history, so that I can track whale movements or verify my own transfers.20213. **As an analyst**, I want to fetch block data and network statistics, so that I can analyze network health and congestion.22234. **As a researcher**, I want to query smart contract state and events, so that I can analyze protocol behavior and token metrics.2425## Functional Requirements2627- REQ-1: Query transaction details by hash (status, gas, value, input data)28- REQ-2: Fetch address balances (native + ERC20/ERC721 tokens)29- REQ-3: Get block information (number, timestamp, transactions, gas)30- REQ-4: Query smart contract read functions31- REQ-5: Fetch transaction history for addresses32- REQ-6: Support multiple chains (Ethereum, Polygon, BSC, Arbitrum, etc.)33- REQ-7: Decode transaction input data using ABI34- REQ-8: Display token transfers within transactions3536## API Integrations3738| API | Purpose | Rate Limit |39|-----|---------|------------|40| Etherscan | Ethereum data, ABI, source code | 5/sec (free) |41| Infura/Alchemy | RPC calls, real-time data | 100k/day (free) |42| CoinGecko | Token prices for USD values | 10-30/min |43| Polygonscan | Polygon chain data | 5/sec (free) |44| BSCScan | BSC chain data | 5/sec (free) |4546## Success Metrics4748- Transaction queries return complete data within 3 seconds49- Multi-chain support for top 5 EVM chains50- Error messages include actionable remediation steps51- Output formats: table, JSON, CSV5253## Non-Goals5455- Real-time transaction monitoring (use whale-alert-monitor)56- Gas price optimization (use gas-fee-optimizer)57- Non-EVM chains (Solana, Bitcoin) in v1.058- Private transaction decryption