Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt

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

This is a React-only guide.

Configurable Wallet Connectors

In some cases you would want to override the default settings of the wallet client. Dynamic allows you do to so by passing Viem’s HttpTransportConfig to the Wallet Connector. You can do so by using Dynamic EthereumWalletConnectorsWithConfig and passing it to the argument: httpTransportConfig Example:
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
import { EthereumWalletConnectorsWithConfig } from '@dynamic-labs/ethereum';

<DynamicContextProvider
  settings={{
    walletConnectors: [
      EthereumWalletConnectorsWithConfig({
        httpTransportConfig: {
          fetchOptions: {
            headers: {
              'X-Requested-With': 'XMLHttpRequest',
            },
          },
          retryCount: 0
        },
      })
    ],
  }}
>
  {...}
</DynamicContextProvider>