If your desired network is not listed in the network list on the Gelato Dashboard or Dynamic Dashboard, but is included in the supported networks section, you can manually add it when using the Gelato Smart Wallet React SDK with Dynamic as the wallet provider. Follow the steps below to configure custom networks with Dynamic.
1

Create Custom Network Object

const customNetwork = {
  chainId: 1,
  chainName: "Custom Network",
  name: "Custom Network",
  iconUrls: ["https://customnetwork.com/icon.png"],
  nativeCurrency: {
    name: "Custom Network",
    symbol: "CNT",
    decimals: 18,
    iconUrl: "https://customnetwork.com/icon.png",
  },
  networkId: 1,
  rpcUrls: ["https://rpc.customnetwork.com"],
  blockExplorerUrls: ["https://explorer.customnetwork.com"],
  vanityName: "Custom Network",
};
2

Initialize Gelato Context Provider with Custom Network

<GelatoSmartWalletContextProvider
  settings={{
    scw: {
      type: "gelato", // use gelato, kernel, safe, or custom
    },
    waas: {
      type: "dynamic",
      appId: process.env.NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID as string,
      customChains: {
        evmNetworks: [customNetwork],
      },
    },
    apiKey: process.env.SPONSOR_API_KEY as string,
    wagmi: wagmi({
      chains: [customNetworkViemObject],
      transports: {
        [customNetworkViemObject.id]: http(),
      },
    }),
  }}
>
  {children}
</GelatoSmartWalletContextProvider>

Now that you’ve successfully added custom networks with Dynamic, you can proceed to integrate various transaction methods using the Gelato Smart Wallet React SDK here