Skip to main content

Pack.getOwned() method

Get Owned Packs

Example

// Address of the wallet to get the packs of
const address = "{{wallet_address}}";
const packss = await contract.getOwned(address);

Signature:

getOwned(walletAddress?: string): Promise<NFT[]>;

Parameters

ParameterTypeDescription
walletAddressstring(Optional)

Returns:

Promise<NFT[]>

The pack metadata for all the owned packs in the contract.

Remarks

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