safeBatchTransferFrom

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

Example

import { safeBatchTransferFrom } from "thirdweb/extensions/erc1155";
const transaction = safeBatchTransferFrom({
contract,
from: ...,
to: ...,
tokenIds: ...,
values: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
...
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.