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.

Configurable Wallet Connectors

In some cases you would want to override the default settings of the Web3.js Connection. Dynamic allows you do to so by passing SolanaConnectionConfig prop and an additional customRpcUrls property to SolanaWalletConnectorsWithConfig For example:
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
import { SolanaWalletConnectorsWithConfig } from '@dynamic-labs/solana';

<DynamicContextProvider
  settings={{
    walletConnectors: [
      SolanaWalletConnectorsWithConfig({
        commitment: "confirmed",
        httpHeaders: {
          "X-Requested-With": "XMLHttpRequest",
        },
        customRpcUrls: {
          solana: ["http://YOUR_URL"],
          eclipse: ["http://YOUR_URL"],
        },
      }),
    ],
    ... // other settings
  }}
>
  {...}
</DynamicContextProvider>