Open
Conversation
- Add /api/stats endpoint for network metrics - Add NetworkStats component below spotlight pills - Shows txns/24h, tokens count, accounts/24h - Uses block_num filtering (24h ≈ 172,800 blocks at 0.5s/block) Amp-Thread-ID: https://ampcode.com/threads/T-019c00e5-b80d-7485-872a-c46d5bb31aeb Co-authored-by: Amp <amp@ampcode.com>
- Add /api/stats endpoint with 24h transactions, token count, and active accounts - Add NetworkStats component with loading and error states - Implement 60s server-side caching to avoid IndexSupply rate limits - Add thundering herd prevention and stale-while-error resilience Amp-Thread-ID: https://ampcode.com/threads/T-019c0131-d03f-7478-b89f-0afd1cf0725a Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019c0131-d03f-7478-b89f-0afd1cf0725a Co-authored-by: Amp <amp@ampcode.com>
Bundle Size Report
Chunk changes (>1KB)
Compared against main branch (baseline from 1/27/2026, 3:31:27 AM) |
Cloudflare Deployments
|
o-az
approved these changes
Jan 27, 2026
Amp-Thread-ID: https://ampcode.com/threads/T-019c0131-d03f-7478-b89f-0afd1cf0725a Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019c0131-d03f-7478-b89f-0afd1cf0725a Co-authored-by: Amp <amp@ampcode.com>
4098125 to
8d9425d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds network metrics (24h transactions, total tokens, and 24h active accounts) to the explorer homepage.
Changes
New API endpoint
/api/statsNetworkStats component
Performance & Reliability
Preview
Stats display as:
15.4M txns / 24h100K+ tokens+5.7K accounts / 24hChecklist
pnpm check:typespassespnpm check:biomepassespnpm testpasses