Skip to content

rpc hub (D): archive depth column - #1552

Merged
Flotapponnier merged 1 commit into
mainfrom
feat/rpc-hub-archive-depth
Jul 27, 2026
Merged

rpc hub (D): archive depth column#1552
Flotapponnier merged 1 commit into
mainfrom
feat/rpc-hub-archive-depth

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Ship D from the /rpc audit. Data was already collected by the harness (rpc_archive_depth_supported metric, 2415 series) but never made it to the hub.

Pipeline

  • types/benchmark.ts: ProviderResult gains archiveDepth?: { supportedBlocks: number[] }
  • materialize/load.ts: for -rpc specs, one extra Prom query max by(provider, depth)(rpc_archive_depth_supported{chain=X} == 1) groups supported depths per provider, attaches to result rows. Failure is silent (nice-to-have)
  • rpc-hub-stats.ts: RpcHubProvider gains archiveDepth, RpcHubChain gains bestArchiveDepthBlocks (max of leader's supported set), mapper populates both
  • rpc-chains-leaderboard.tsx: new sortable 'Archive' column between 'Best p90' and regions. Compact labels (300 / 7.2k / 216k / 1.3M / 5M) + tooltip with block count + Geth pruning context

Rate limits

Zero new RPC probes. Harness already collects archive depth every 1h/(chain,provider,region,depth). Extra load = 1 Prom query per -rpc bench per materialization cycle (~41 queries/cycle, cheap).

What users will see

Providers like Thirdweb (pruned per our live probe) render '300' in gray; chain-official + full-archive gateways render '5M+' in normal weight. Instant signal for indexer / subgraph builders who need historical state.

… into bench blob, exposes bestArchiveDepthBlocks in snapshot, displays as sortable column
@Flotapponnier
Flotapponnier merged commit acdc582 into main Jul 27, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the feat/rpc-hub-archive-depth branch July 27, 2026 09:08
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