Skip to content

Documentation / expo / UseDelegatedActionsInterface

Interface: UseDelegatedActionsInterface ​

Properties ​

delegateWallet ​

delegateWallet: (__namedParameters) => Promise<Object>

Prompts the user to delegate access to their wallet to allow an app to transact on behalf of a user within a set of pre-defined permissions. Users can always decline or revoke delegation.

Parameters ​

• __namedParameters: Object

• __namedParameters.address: string

• __namedParameters.chainType: "solana" | "ethereum"

Returns ​

Promise<Object>

user ​

user: PrivyUser


revokeWallets ​

revokeWallets: () => Promise<Object>

Revokes the wallet API's ability to transact with a user's delegated wallets. This will revoke ALL wallets that have been delegated by the user, in case the user has delegated multiple embedded wallets.

Returns ​

Promise<Object>

Promise that resolves if the revocation was successful, with the updated user object, and errors otherwise

user ​

user: PrivyUser