Skip to content

Delegating wallets

Privy enables your app to request permission to take certain embedded wallet actions on behalf of users, without needing the user to be in the loop. This is known as delegated actions. Neither Privy nor your app can take any actions beyond what the user consents to.

Privy makes it easy to prompt your user for delegation consent or build your own UIs for delegation. Follow the guide below to delegate user's wallets, enabling your app to securely interact with these wallets from your servers.

INFO

Prior to integrating delegated actions, learn more about the feature and make sure to configure your app to enable delegated actions in the Dashboard.

Enabling automated wallet controls

You can either prompt users to delegate their wallets via a consent screen (with UIs) or automatically(substituting Privy UIs with your own). Make sure to follow the appropriate guide below.

Before delegating a wallet, first check that the wallet has not already been delegated.

Reprompting

If you rotate your authorization key or the user revokes consent, you will need to re-delegate users' wallets.

Highly recommended. We recommend you wrap your code in a guard that detects if the user should be prompted with the consent flow. For example, you can get the user's delegated wallets and automatically reprompt if no wallets are delegated.