Using the Client API
You can use the Dynamic client’s delegation module to trigger delegation programmatically:Delegate Key Shares
You can delegate key shares for specific wallets with optional password encryption:When a password is provided, the delegated share will be encrypted with the password, providing an additional layer of security. Learn more about password encryption.
Available Delegation Methods
| Method | Description |
|---|---|
initDelegationProcess | Initiates the delegation process for specified wallets or all user wallets |
shouldPromptWalletDelegation | Checks if the user should be prompted for delegation |
getWalletsDelegatedStatus | Returns delegation status for all user wallets |
delegateKeyShares | Delegates key shares for specific wallets (with optional password) |
revokeDelegation | Revokes delegation for specific wallets (with optional password) |
denyWalletDelegation | Denies delegation for a specific wallet |
dismissDelegationPrompt | Dismisses the delegation prompt for a wallet |
clearDelegationSessionState | Clears delegation session state |
What's next?
Learn how to properly receive the delegation materials