Skip to content

feat: make supported chains list dynamic via getSupportedChains API#1239

Open
stephancill wants to merge 1 commit intobase:masterfrom
stephancill:stephancilliers/dynamic-supported-chains
Open

feat: make supported chains list dynamic via getSupportedChains API#1239
stephancill wants to merge 1 commit intobase:masterfrom
stephancill:stephancilliers/dynamic-supported-chains

Conversation

@stephancill
Copy link
Contributor

@stephancill stephancill commented Mar 23, 2026

What changed? Why?
The supported chains list was hardcoded in two places with inconsistencies between them. This PR:

  • Creates a shared docs/snippets/supported-chains.mdx snippet used by both the Base Account overview and mini-apps compatibility pages
  • Adds scripts/update-supported-chains.sh that fetches the SCW getSupportedChains API and injects any chains tagged simple-chain into the snippet
  • Core chains remain hardcoded; only basic chains (tagged simple-chain) are dynamic
  • Basic chains section includes a note that they are only available on Base Account Web

Notes to reviewers
No simple-chain tags exist in prod yet, so the dynamic section is currently empty. When basic chains are tagged in scw-manager, running the script will populate them. Tested against the dev API (wallet-api-dev.cbhq.net) where Monad, Unichain, and ZKsync are tagged.
The script supports an API_URL env var override for testing: API_URL=https://wallet-api-dev.cbhq.net/rpc/v3/scw/getSupportedChains bash scripts/update-supported-chains.sh

How has it been tested?
Ran mintlify dev locally and verified rendering with both prod API (no basic chains) and dev API (Monad, Unichain, ZKsync shown).

image

@stephancill stephancill requested a review from youssefea March 23, 2026 13:31
@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Mar 23, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@stephancill stephancill force-pushed the stephancilliers/dynamic-supported-chains branch 2 times, most recently from 5e6a7cb to 3ad888d Compare March 23, 2026 14:15
@stephancill stephancill force-pushed the stephancilliers/dynamic-supported-chains branch from 3ad888d to 57696ac Compare March 23, 2026 14:25
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.

2 participants