Appearance
Documentation / expo / UseHeadlessDelegatedActionsInterface
Interface: UseHeadlessDelegatedActionsInterface ​
Properties ​
delegateWallet ​
delegateWallet: (
__namedParameters
) =>Promise
<Object
>
Authorizes the an app to transact on behalf of a user within a set of pre-defined permissions. Users should always be able to 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