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.
In your application, when a user is logged in, you’ll want to request delegation for your application.

Dynamic’s UI

Auto-prompt User on Sign In

If you chose to prompt the user on sign in in the configuration step, the user is prompted to approve delegation for your application when they next sign in.

Trigger Delegation Manually

You can use the useWalletDelegation hook to check if the user has delegated access and trigger the Dynamic delegation UI flow manually.

User Triggered Delegation

The user can also manually trigger delegation at any time by going to Settings -> Security -> Connected Apps -> Wallets Delegated in the Dynamic Widget.

Your Own UI

You can use the useWalletDelegation hook to check if the user has delegated access, then use the delegateKeyShares method from the useWalletDelegation hook to delegate a wallet without any Dynamic UI.

What's next?

Learn how to properly receive the delegation materials
Last modified on June 25, 2026