File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,19 +24,23 @@ PUBLIC_WALLETCONNECT_PROJECT_ID=''
2424# Native token address
2525PUBLIC_NATIVE_TOKEN_ADDRESS = 0x0000000000000000000000000000000000000000
2626
27- # RPCs. Complete if you want to use a different RPC from the one provided by wagmi.
27+ # RPCs. Use these to override the default RPC for each chain.
28+ #
29+ # Configured in src/lib/networks.config.ts -- fall back to CORS-friendly publicnode.com RPCs when unset:
30+ PUBLIC_RPC_MAINNET =
2831PUBLIC_RPC_ARBITRUM =
32+ PUBLIC_RPC_OPTIMISM =
33+ PUBLIC_RPC_OPTIMISM_SEPOLIA =
34+ PUBLIC_RPC_POLYGON =
35+ PUBLIC_RPC_SEPOLIA =
36+ #
37+ # Not configured by default -- add them to src/lib/networks.config.ts first, then set the RPC here:
2938PUBLIC_RPC_ARBITRUM_SEPOLIA =
3039PUBLIC_RPC_BASE =
3140PUBLIC_RPC_BASE_SEPOLIA =
3241PUBLIC_RPC_GNOSIS =
3342PUBLIC_RPC_GNOSIS_CHIADO =
34- PUBLIC_RPC_MAINNET =
35- PUBLIC_RPC_OPTIMISM =
36- PUBLIC_RPC_OPTIMISM_SEPOLIA =
37- PUBLIC_RPC_POLYGON =
3843PUBLIC_RPC_POLYGON_MUMBAI =
39- PUBLIC_RPC_SEPOLIA =
4044
4145# Subgraph
4246# ##########################################################
Original file line number Diff line number Diff line change @@ -18,10 +18,12 @@ export type ChainsIds = (typeof chains)[number]['id']
1818
1919type RestrictedTransports = Record < ChainsIds , Transport >
2020export const transports : RestrictedTransports = {
21- [ mainnet . id ] : http ( env . PUBLIC_RPC_MAINNET ) ,
22- [ arbitrum . id ] : http ( env . PUBLIC_RPC_ARBITRUM ) ,
23- [ optimism . id ] : http ( env . PUBLIC_RPC_OPTIMISM ) ,
24- [ optimismSepolia . id ] : http ( env . PUBLIC_RPC_OPTIMISM_SEPOLIA ) ,
25- [ polygon . id ] : http ( env . PUBLIC_RPC_POLYGON ) ,
26- [ sepolia . id ] : http ( env . PUBLIC_RPC_SEPOLIA ) ,
21+ [ mainnet . id ] : http ( env . PUBLIC_RPC_MAINNET || 'https://ethereum-rpc.publicnode.com' ) ,
22+ [ arbitrum . id ] : http ( env . PUBLIC_RPC_ARBITRUM || 'https://arbitrum-one-rpc.publicnode.com' ) ,
23+ [ optimism . id ] : http ( env . PUBLIC_RPC_OPTIMISM || 'https://optimism-rpc.publicnode.com' ) ,
24+ [ optimismSepolia . id ] : http (
25+ env . PUBLIC_RPC_OPTIMISM_SEPOLIA || 'https://optimism-sepolia-rpc.publicnode.com' ,
26+ ) ,
27+ [ polygon . id ] : http ( env . PUBLIC_RPC_POLYGON || 'https://polygon-bor-rpc.publicnode.com' ) ,
28+ [ sepolia . id ] : http ( env . PUBLIC_RPC_SEPOLIA || 'https://ethereum-sepolia-rpc.publicnode.com' ) ,
2729}
You can’t perform that action at this time.
0 commit comments