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.

import { useDynamicContext } from '@dynamic-labs/sdk-react-core'
import { isLedgerSolanaWallet } from "@dynamic-labs/solana-core";

const App = () => {
  const { primaryWallet } = useDynamicContext()

  if (primaryWallet && isLedgerSolanaWallet(primaryWallet)) {
    /**
     * This block will execute if the primaryWallet was connected
     * as a Ledger wallet on the Solana blockchain during the
     * Dynamic UI connection process.
     */
  }
}