safeBatchTransferFrom

Prepares a transaction to call the "safeBatchTransferFrom" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { safeBatchTransferFrom } from "thirdweb/extensions/erc1155";
const transaction = safeBatchTransferFrom({
contract,
from: ...,
to: ...,
tokenIds: ...,
values: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function safeBatchTransferFrom(
| { asyncParams: () => Promise<SafeBatchTransferFromParams> }
>,

Parameters

The options for the "safeBatchTransferFrom" function.

Type

| { asyncParams: () => Promise<SafeBatchTransferFromParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.