A hook to send a transaction.
import { useSendAndConfirmTransaction } from "thirdweb/react";const { mutate: sendAndConfirmTx, data: transactionReceipt } = useSendAndConfirmTransaction(); // latersendAndConfirmTx(tx);
import { useSendAndConfirmTransaction } from "thirdweb/react";const mutation = useSendAndConfirmTransaction({ gasless: { provider: "engine", relayerUrl: "https://thirdweb.engine-***.thirdweb.com/relayer/***", relayerForwarderAddress: "0x...", },});
function useSendAndConfirmTransaction( config: SendAndConfirmTransactionConfig,): UseMutationResult<TransactionReceipt, Error, PreparedTransaction>;
let config: SendAndConfirmTransactionConfig;
let returnType: UseMutationResult< TransactionReceipt, Error, PreparedTransaction>;
A mutation object to send a transaction.