typescript-sdk

Home > @3rdweb/sdk > PackModule > getNFTs

PackModule.getNFTs() method

Get Pack Reward Data

Signature:

getNFTs(packId: string): Promise<PackNFTMetadata[]>;

Parameters

Parameter Type Description
packId string  

Returns:

Promise<PackNFTMetadata[]>

The NFT metadata for all NFTs in the module.

Remarks

Get data associated with the rewards inside a specified pack

Example

// The pack ID of the pack whos rewards you want to get
const packId = 0;

const nfts = await module.getNFTs(packId);
console.log(nfts);