Calls the "getPackContents" function on the contract.
import { getPackContents } from "thirdweb/extensions/pack"; const result = await getPackContents({ contract, packId: ...,});
function getPackContents(options: BaseTransactionOptions<GetPackContentsParams>) : Promise<readonly [readonly Array<{ assetContract: string; tokenId: bigint; tokenType: number; totalAmount: bigint }>, readonly Array<bigint>]>
The options for the getPackContents function.
let options: BaseTransactionOptions<GetPackContentsParams>;
let returnType: Promise<readonly [readonly Array<{ assetContract: string; tokenId: bigint; tokenType: number; totalAmount: bigint }>, readonly Array<bigint>]>
The parsed result of the function call.