Skip to content

Documentation / react-auth / UseDelegatedActionsInterface

Interface: UseDelegatedActionsInterface

Hook to delegated permissions to execute certain transactions to the wallet API.

Properties

delegateWallet

delegateWallet: (__namedParameters) => Promise<void>

Prompts the user to delegate access to their wallet to a trusted-execution environment (TEE) 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<void>


revokeWallets

revokeWallets: () => Promise<void>

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<void>

Promise that resolves if the revocation was successful, and errors otherwise