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<EditionMetadataOwner[]>;
Parameters
Parameter | Type | Description |
---|---|---|
walletAddress | string | (Optional) |
Returns:
Promise<EditionMetadataOwner[]>
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.