Skip to content

Support block-by-number lookup and navigation#153

Open
niran wants to merge 1 commit intomasterfrom
niran/block-by-number
Open

Support block-by-number lookup and navigation#153
niran wants to merge 1 commit intomasterfrom
niran/block-by-number

Conversation

@niran
Copy link
Contributor

@niran niran commented Mar 15, 2026

Summary

  • /api/block/[hash] now accepts a block number in addition to a hash, resolving it via RPC and caching the result
  • Extracts buildAndCacheBlockData helper to avoid duplication between the hash and number code paths
  • Block detail page adds prev/next navigation arrows for browsing sequential blocks
  • Fixes stale state when navigating between blocks by resetting data/loading/error on hash change

The block detail API route now accepts a block number in addition to a
hash, resolving it via RPC and caching the result. The block detail page
adds prev/next navigation arrows and resets state when navigating
between blocks.
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.

1 participant