Skip to content

Phase 4 — Block Info Explorer #3

@devdavidejesus

Description

@devdavidejesus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions