A hook to estimate the gas for a given transaction.
import { useEstimateGas } from "thirdweb/react";const { mutate: estimateGas, data: gasEstimate } = useEstimateGas(); // laterconst estimatedGas = await estimateGas(tx);
function useEstimateGas(): UseMutationResult< EstimateGasResult, Error, PreparedTransaction>;
let returnType: UseMutationResult< EstimateGasResult, Error, PreparedTransaction>;
A mutation object to estimate gas.