Actalink Docs
Hooks

useCancel Hook

Hook for getting the logic to cancel scheduled user operations.

Import

import { useCancel } from "@actalink/react-hooks";

Usage

import { useCancel } from "@actalink/react-hooks";
import { config } from "../wagmi"; // import wagmi config
 
const Home: NextPage = () => {
  const { cancel } = useCancel();
  return()
}

Returns

ValueReturn TypeDefinition
cancelFunction to cancel the scheduled user operations.
type BodyType = {
  validator: Address;
  salt: `0x${string}`;
};

On this page