In your application, when a user is logged in, you’ll want to request delegation so your server can act on their behalf (for example, to sign transactions or run automated flows).Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Check delegation status
UsehasDelegatedAccess to check whether a wallet account already has delegated access before triggering the delegation flow.
Trigger delegation
UsedelegateWaasKeyShares to initiate the delegation process for a wallet account. This sends the encrypted delegated share to your server via the wallet.delegation.created webhook.
With password encryption
If the wallet uses password encryption, pass the password when delegating. The delegated share will be encrypted with the password before being sent.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletAccount | WalletAccount | Yes | The WaaS wallet account to delegate |
password | string | No | Password for wallets using password encryption |
What's next?
Learn how to receive the delegation materials on your server