useSendBatchTransaction

A hook to send a transaction.

Example

import { useSendBatchTransaction } from "thirdweb/react";
const { mutate: sendBatch, data: transactionResult } =
useSendBatchTransaction();
// later
sendBatch([tx1, tx2]);
function useSendBatchTransaction(): UseMutationResult<
Error,
>;

Returns

let returnType: UseMutationResult<
Error,
>;

A mutation object to send a transaction.