Prepares a transaction to call the "createPack" function on the contract.
import { createPack } from "thirdweb/extensions/erc1155"; const transaction = createPack({ contract, contents: ..., numOfRewardUnits: ..., packUri: ..., openStartTimestamp: ..., amountDistributedPerOpen: ..., recipient: ..., overrides: { ... }}); // Send the transaction...
function createPack( options: BaseTransactionOptions< | CreatePackParams | { asyncParams: () => Promise<CreatePackParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "createPack" function.
let options: BaseTransactionOptions< CreatePackParams | { asyncParams: () => Promise<CreatePackParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.