typescript-sdk

Home > @3rdweb/sdk > NFTModule > getOwned

NFTModule.getOwned() method

Get Owned NFTs

Signature:

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

Parameters

Parameter Type Description
_address string  

Returns:

Promise<NFTMetadata[]>

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);