Make sure you have configured delegated access in the Dynamic Console before triggering delegation.
Dynamic’s UI
Auto-prompt User on Sign In
If you chose to prompt the user on sign in during the configuration step, the user is prompted to approve delegation for your application when they next sign in.Trigger Delegation Manually
You can use theinitDelegationProcess method from the delegation module to open the delegation modal UI:
Check If User Should Be Prompted
Before prompting, you can check whether the user should see a delegation prompt:Your Own UI
You can usedelegateKeyShares to delegate wallets programmatically without showing any Dynamic UI:
delegateKeyShares also accepts an optional password parameter, required when delegating password-encrypted wallets. The call requires wallet:delegate step-up authentication; the SDK prompts for it when needed and throws if the user does not complete it.
Monitor Delegation State
You can observe delegation state changes reactively:Check Wallet Delegation Status
Dismiss or Deny Delegation
What's next?
Learn how to properly receive the delegation materials on your server