useRevokeSessionKey

Description

This hook provides functionality to remove a sessionKey for your wallet.

Returns

  • data (Hash | undefined): The hash of the transaction if it was successfully sent, otherwise undefined.

  • error (Error | null): An error object if the transaction failed, otherwise null.

  • isPending (boolean): A boolean indicating whether the transaction is currently pending.

  • isSuccess (boolean): A boolean indicating whether the transaction was successfully sent.

  • isError (boolean): A boolean indicating whether an error occurred during the transaction process.

  • revokeSessionKey: A function to trigger the revoking of a sessionKey.

  • revokeSessionKeyAsync: A function to trigger the revoking of a sessionKey and return a promise that resolves to the transaction hash.

Last updated