feat(metadata): replace Chainlist with metadata RPC directory#229
Merged
AugustoL merged 5 commits intoopenscan-explorer:release/v1.2.1-afrom Feb 22, 2026
Merged
Conversation
|
🚀 Preview: https://pr-229--openscan.netlify.app |
Pin metadata package to @1.1.0-alpha.0 and update token data paths to include /evm/ segment, matching the new multi-chain directory structure in the metadata repository.
Replace bundled networks.json RPCs and Chainlist fetching with curated RPC endpoints from @openscan/metadata. RPCs are fetched from the metadata CDN on startup, cached in localStorage with 24h TTL, and color-coded in Settings by tracking/open-source status.
dc936cb to
492038e
Compare
Move metadata RPC fetch into loadNetworkData so RPCs are resolved before the app finishes initializing (fixes empty RPC state on first load). Add clearMetadataRpcCache to the Settings clear-cache action.
Personal API key URLs now display as "Infura Personal" / "Alchemy Personal" with the yellow tracking-enabled tag color.
MatiasOS
approved these changes
Feb 22, 2026
Adds Polygon RPC endpoints to the metadata directory.
a9a21e6 to
83b2f11
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.
Description
Replace bundled
networks.jsonRPCs and Chainlist fetching with curated RPC endpoints from@openscan/metadata@1.1.0-alpha.0. RPCs are now fetched from the metadata CDN on startup, cached in localStorage with 24h TTL, and color-coded in Settings by tracking/open-source status.Related Issue
Type of Change
Changes Made
fetchAllRpcs()that fetches RPC manifest + per-network files from metadata CDN, with support for both EVM (eip155:) and Bitcoin (bip122:) networksgetDefaultRpcEndpoints()to use cache instead of bundlednetworks.jsonrpc.publicblocks — RPCs are no longer bundledrpcfield fromNetworkMetadataandNetworkConfig.rpc-opensource,.rpc-private,.rpc-trackingtag color variants and legendfetchButton/fetchingButtonkeys; added legend label keys (en + es)Screenshots (if applicable)
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes