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.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 DynamicEthereumWalletConnectorsWithConfig and passing it to the argument: httpTransportConfig
Example: