useAddSessionKey
Description
This hook provides functionality to add a new sessionKey for 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.addSessionKey: A function to trigger the creation of a sessionKey.
addSessionKeyAsync: A function to trigger the creation of a sessionKey and return a promise that resolves to the transaction hash.
Last updated