Skip to content

feat: Add RPC metadata and restructure data by network type#3

Open
AugustoL wants to merge 4 commits intomainfrom
feat/add-rpcs
Open

feat: Add RPC metadata and restructure data by network type#3
AugustoL wants to merge 4 commits intomainfrom
feat/add-rpcs

Conversation

@AugustoL
Copy link
Collaborator

@AugustoL AugustoL commented Dec 30, 2025

Summary

  • Add RPC endpoint metadata from chainlist.org with tracking, provider, and privacy fields
  • Restructure all per-network data directories by network type (evm/, btc/) to support multi-chain architecture
  • Add Bitcoin Testnet4 network and RPC endpoint
  • Update build, validation, and import scripts for the new directory structure
  • Update documentation (README, CLAUDE.md) with new paths and API examples

Changes

RPC metadata

  • Create RPC schema with tracking, provider, isOpenSource fields
  • Add RPC data for 7 EVM networks and 2 Bitcoin networks
  • Add import-rpcs script to sync EVM RPCs from chainlist.org
  • Align RPC metadata with CAIP-2 network identifiers

Directory restructure

  • Move data/{tokens,addresses,events}/{chainId}/data/{tokens,addresses,events}/evm/{chainId}/
  • Move data/rpcs/{chainId}.jsondata/rpcs/evm/{chainId}.json
  • Add data/rpcs/btc/{slug}.json for Bitcoin networks
  • EVM networks identified by chain ID, Bitcoin networks by slug (mainnet, testnet4)

New network data

  • Add Bitcoin Testnet4 (bip122:00000000da84f2bafbbc53dee25a72ae) to networks.json
  • Add mempool.space testnet4 RPC endpoint

Script updates

  • build.ts: All 4 build functions iterate over network type subdirs
  • validate.ts: Network-type-aware validation (EVM chainId checks, BTC bip122 checks)
  • import-rpcs.ts: Scoped to data/rpcs/evm/

Test plan

  • npm run validate — 427 files valid
  • npm run build — dist has correct evm//btc/ structure
  • npm run lint — no errors

@AugustoL AugustoL self-assigned this Dec 30, 2025
@AugustoL AugustoL added the enhancement New feature or request label Dec 30, 2025
@AugustoL AugustoL force-pushed the feat/add-rpcs branch 2 times, most recently from 2af7b1f to cc1e714 Compare December 30, 2025 20:28
Add RPC endpoint metadata from chainlist.org for community contributions.

- Create RPC schema with tracking, provider, isOpenSource fields
- Add RPC data for 7 networks: Ethereum (1), Optimism (10), Base (8453),
  Arbitrum (42161), BNB Chain (56), BNB Testnet (97), Sepolia (11155111)
- Update validation script to validate RPC files
- Update build script to generate dist/rpcs/ output
- Add import-rpcs script to sync from chainlist.org
Add networkId (CAIP-2 string, e.g. "eip155:1") to RPC schema, data
files, and build output. Replace hardcoded SUPPORTED_CHAINS in import
script with dynamic derivation from data/networks.json. Add networkId
consistency validation for EVM chains.
@AugustoL AugustoL marked this pull request as ready for review February 13, 2026 14:41
Organize per-network data under network type subdirectories to support
multi-chain architecture. EVM networks use chain IDs, Bitcoin networks
use slugs. Add Bitcoin Testnet4 network and RPC endpoint.
@AugustoL AugustoL changed the title feat: Add RPC metadata for supported networks feat: Add RPC metadata and restructure data by network type Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant