A hook to simulate a transaction.
import { useSimulateTransaction } from "thirdweb/react";const { mutate: simulateTx } = useSimulateTransaction(); // laterconst result = await simulateTx(tx);
function useSimulateTransaction< abi extends Abi, abiFn extends AbiFunction,>(): UseMutationResult< Awaited<ReturnType<typeof simulateTransaction>>, Error, SimulateOptions<abi, abiFn>>;
let returnType: UseMutationResult< Awaited<ReturnType<typeof simulateTransaction>>, Error, SimulateOptions<abi, abiFn>>;
A mutation object to simulate a transaction.