typescript-sdk

Home > @3rdweb/sdk > BundleModule > getAll

BundleModule.getAll() method

Get NFT Data

Signature:

getAll(address?: string): Promise<BundleMetadata[]>;

Parameters

Parameter Type Description
address string  

Returns:

Promise<BundleMetadata[]>

The NFT metadata for all NFTs in the module.

Remarks

Get data associated with NFTs in this module.

Example

// You can get every NFT in the module
const nfts = await module.getAll();
console.log(nfts);

// Or you can get optionally get the NFTs owned by a specific wallet
const address = ""; // The address you want to get the NFTs for;
const ownedNfts = await module.getAll(address);
console.log(ownedNfts);