useAddOwner
Description
This hook provides functionality to add a new address as owner of your wallet.
Returns
data (
Hash | undefined
): The hash of the transaction if it was successfully sent, otherwiseundefined
.error (
Error | null
): An error object if the transaction failed, otherwisenull
.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.addOwner: A function to trigger the adding of a new owner.
addOwnerAsync: A function to trigger the adding of a new owner and return a promise that resolves to the transaction hash.
Last updated