getPackContents

Calls the "getPackContents" function on the contract.

Example

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>]>

Parameters

The options for the getPackContents function.

Type

Returns

let returnType: Promise<readonly [readonly Array<{ assetContract: string; tokenId: bigint; tokenType: number; totalAmount: bigint }>, readonly Array<bigint>]>

The parsed result of the function call.