Skip to main content

Recommended: JavaScript SDK with React Hooks

For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.

Checking if a wallet is a Solana wallet

React

Get Connection

React

Get Signer

React

Custom Connection (React only)

In some cases you would want to override the default settings of the Web3.js Connection. React provides the SolanaWalletConnectorsWithConfig to customize Web3.js Connection configuration with commitment levels, HTTP headers, and custom RPC URLs.
React

Examples

You can find examples of how to interact with Solana wallets in the examples section:
Last modified on June 25, 2026