Skip to content

feat: env vars rpcs#129

Open
0xCardiE wants to merge 4 commits intomainfrom
feat/env_vars_rpcs
Open

feat: env vars rpcs#129
0xCardiE wants to merge 4 commits intomainfrom
feat/env_vars_rpcs

Conversation

@0xCardiE
Copy link
Collaborator

@0xCardiE 0xCardiE commented Mar 19, 2026

Gnosis RPC from env removed
getGnosisPublicClient no longer uses NEXT_PUBLIC_GNOSIS_RPC. It only uses the global custom RPC (when set) and the public fallback list.

Localhost RPC order removed
Wagmi no longer reverses the RPC list on localhost. The same RPC order is used everywhere.

Private RPCs via env per chain
Optional private RPCs can be set in .env.local with NEXT_PUBLIC_RPC_ (e.g. NEXT_PUBLIC_RPC_1, NEXT_PUBLIC_RPC_100). When set, that URL is prepended to the existing public list and used first for that chain. Wagmi transport and getRpcUrlsForChain both use this effective list.

@0xCardiE 0xCardiE marked this pull request as ready for review March 19, 2026 12:37
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