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