Docs

useSendTransaction

A hook to send a transaction.

Example

import { useSendTransaction } from "thirdweb/react";
const { mutate: sendTx, data: transactionResult } =
useSendTransaction();
// later
sendTx(tx);

Returns

A mutation object to send a transaction.