Home > @3rdweb/sdk > BundleModule > getAll
Get NFT Data
Signature:
getAll(address?: string): Promise<BundleMetadata[]>;
Parameter | Type | Description |
---|---|---|
address | string |
Returns:
Promise<BundleMetadata[]>
The NFT metadata for all NFTs in the module.
Get data associated with NFTs in this module.
// 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);