A hook to send a transaction.
import { useSendAndConfirmTransaction } from "thirdweb/react";const { mutate: sendAndConfirmTx, data: transactionReceipt } = useSendAndConfirmTransaction(); // latersendAndConfirmTx(tx);
function useSendAndConfirmTransaction(): UseMutationResult< TransactionReceipt, Error, PreparedTransaction>;
let returnType: UseMutationResult< TransactionReceipt, Error, PreparedTransaction>;
A mutation object to send a transaction.