Prepares a transaction to call the "safeTransferFrom" function on the contract.
import { sendTransaction } from "thirdweb";import { safeTransferFrom } from "thirdweb/extensions/erc1155"; const transaction = safeTransferFrom({ contract, from: ..., to: ..., tokenId: ..., value: ..., data: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function safeTransferFrom( >,
The options for the "safeTransferFrom" function.
>;
A prepared transaction object.