sendBatchTransaction

Sends a batch transaction using the provided options.

Example

import { sendBatchTransaction } from "thirdweb";
const waitForReceiptOptions = await sendBatchTransaction({
account,
transactions,
});
function sendBatchTransaction(

Parameters

The options for sending the batch transaction.

Type

let options: {
account: Account;
transactions: Array<PreparedTransaction>;
};

Returns

let returnType: Prettify<
SendTransactionResult & {
chain: Chain;
client: ThirdwebClient;
maxBlocksWaitTime?: number;
}
>;

A promise that resolves to the options for waiting for the receipt of the first transaction in the batch.