Prepares a transaction to call the "createPack" function on the contract.
import { sendTransaction } from "thirdweb";import { createPack } from "thirdweb/extensions/pack"; const transaction = createPack({ contract, contents: ..., numOfRewardUnits: ..., packUri: ..., openStartTimestamp: ..., amountDistributedPerOpen: ..., recipient: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function createPack( >,
The options for the "createPack" function.
>;
A prepared transaction object.