typescript-sdk

Home > @3rdweb/sdk > DropModule > getOwned

DropModule.getOwned() method

Get Owned NFTs

Signature:

getOwned(_address?: string): Promise<NFTMetadataOwner[]>;

Parameters

Parameter Type Description
_address string  

Returns:

Promise<NFTMetadataOwner[]>

The NFT metadata for all NFTs in the module.

Remarks

Get all the data associated with the NFTs owned by a specific wallet.

Example

// Address of the wallet to get the NFTs of
const address = "";
const nfts = await module.getOwned(address);
console.log(nfts);