Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dynamic-docs-feat-sidebar-revamp.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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;

SVM (sdk v4.8.0+)

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

Example

The following example overrides the RPC url of the Solana mainnet and Eclipse mainnet set in the dashboard with the ones set in the rpcUrlOverrides object.
const rpcUrlOverrides = {
    "101": ["https://sol.customrpc.com"],
    "201": ["https://eclipse.customrpc.com"]
}

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

export default App;