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...", },});
import { useSendAndConfirmTransaction } from "thirdweb/react";const mutation = useSendAndConfirmTransaction({ gasless: { provider: "openzeppelin", relayerUrl: "https://...", relayerForwarderAddress: "0x...", },});
function useSendAndConfirmTransaction( config: SendAndConfirmTransactionConfig,
A mutation object to send a transaction.