Skip to content

Phase 4 — Block Info Explorer - #7

Merged
devdavidejesus merged 1 commit into
mainfrom
phase-4-block
Jul 26, 2026
Merged

Phase 4 — Block Info Explorer#7
devdavidejesus merged 1 commit into
mainfrom
phase-4-block

Conversation

@devdavidejesus

Copy link
Copy Markdown
Owner

Closes #3

What's new

  • btc-toolkit block <ref> —> block metadata by height, 64-char hash, or latest for the chain tip
  • Shows height, hash, mined timestamp (UTC), tx count, size, weight, difficulty, nonce, and previous block hash
  • --json output for scripting, --network testnet supported
  • First use of the shared get_text client for plain-text endpoints

Verification

  • 12 new tests (54 total), validated against real genesis block data —> timestamp, nonce, and difficulty match immutable on-chain values
  • Verified against live mainnet: block 0 exact match, block latest consistent with mempool.space tip

- New 'btc-toolkit block <ref>' subcommand: accepts height, hash,
  or 'latest' (chain tip)
- Shows height, hash, UTC timestamp, tx count, size, weight,
  difficulty, nonce, previous block
- Uses shared api.py client incl. get_text for plain-text endpoints
- 12 new tests (54 total) validated against real genesis block data
- Verified against live mainnet: genesis block matches immutable
  on-chain values exactly
- Version bump to 0.4.0
@devdavidejesus
devdavidejesus merged commit c8c29e2 into main Jul 26, 2026
4 checks passed
@devdavidejesus
devdavidejesus deleted the phase-4-block branch July 26, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 4 — Block Info Explorer

1 participant