sendBatchTransaction

Sends a batch transaction using the provided options.

Example

import { sendBatchTransaction } from "thirdweb";
const waitForReceiptOptions = await sendBatchTransaction({
account,
transactions,
});
function sendBatchTransaction(
): Promise<{
chain: Readonly;
client: ThirdwebClient;
maxBlocksWaitTime?: number;
readonly transactionHash: `0x${string}`;
}>;

Parameters

The options for sending the batch transaction.

Type

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

Returns

let returnType: Promise<{
chain: Readonly;
client: ThirdwebClient;
maxBlocksWaitTime?: number;
readonly transactionHash: `0x${string}`;
}>;

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