useRemoveOwner

Description

This hook provides functionality to remove an owner of 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.

  • removeOwner: A function to trigger the removing of an owner.

  • removeOwnerAsync: A function to trigger the removing of an owner and return a promise that resolves to the transaction hash.

Last updated