import { sendTransaction } from "thirdweb";
import { createPack } from "thirdweb/extensions/pack";
const transaction = createPack({
contract,
contents: ...,
numOfRewardUnits: ...,
packUri: ...,
openStartTimestamp: ...,
amountDistributedPerOpen: ...,
recipient: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });