The extensions for Pack contract have finally arrived in the SDK v5. You can now create and open packs in just a few lines of codes.
Creating a Pack
import { createNewPack } from "thirdweb/extensions/pack";
const transaction = createNewPack({
contract: packContract,
client,
recipient: "0x...",
tokenOwner: "0x.