## Phase 4 — Block Info Explorer Query block data by height or hash. ### Scope - Fetch block header (height, hash, timestamp, size, weight, tx count) - Display difficulty and nonce - Show miner/pool identification (coinbase tag) - Latest block shortcut ### Endpoints - `GET /api/block/:hash` - `GET /api/block-height/:height` - `GET /api/blocks/tip/height` ### CLI interface ``` python -m btc_toolkit block <height_or_hash> python -m btc_toolkit block latest python -m btc_toolkit block <height_or_hash> --json ``` ### Constraints - Zero external dependencies (stdlib only) - Unit tests with mocked API responses - Verified example blocks in README ### References - Mempool.space API docs: https://mempool.space/docs/api/rest#get-block
Phase 4 — Block Info Explorer
Query block data by height or hash.
Scope
Endpoints
GET /api/block/:hashGET /api/block-height/:heightGET /api/blocks/tip/heightCLI interface
Constraints
References