EVM

You can override the RPC url of any EVM network by using the overrideNetworkRpcUrl method in combination with the overrides.evmNetworks settings.

Example

The following example overrides the RPC url of the Ethereum mainnet and Polygon set in the dashboard with the ones set in the rpcUrlOverrides object.

const rpcUrlOverrides = {
    "1": ["https://eth.customrpc.com"],
    "137": ["https://polygon.customrpc.com"]
}

const App = () => (
  <DynamicContextProvider
    settings={{
      environmentId: 'REPLACE_WITH_YOUR_ENV_ID',
      overrides: { 
        evmNetworks: (networks) => overrideNetworkRpcUrl(networks, rpcUrlOverrides),
      }
    }}
  >
    <Home />
  </DynamicContextProvider>
);

export default App;

Solana and Eclipse

You can override the RPC url used for Solana and Eclipse requests by passing the customRpcUrls option in the connection config options of the SolanaWalletConnectorsWithConfig and EclipseWalletConnectorsWithConfig functions.

Example

The following example overrides the RPC url for Solana and Eclipse.

const App = () => (
  <DynamicContextProvider
    settings={{
      environmentId: 'REPLACE_WITH_YOUR_ENV_ID',
      walletConnectors: [
        SolanaWalletConnectorsWithConfig({
          customRpcUrls: {
            'solana': ['https://solana.customrpc.com'],
          },
        }),
        EclipseWalletConnectorsWithConfig({
          customRpcUrls: {
            'eclipse': ['https://eclipse.customrpc.com'],
          },
        }),
      ],
    }}
  >
    <Home />
  </DynamicContextProvider>
);

export default App;