typescript-sdk

Home > @3rdweb/sdk > PackModule > getOwned

PackModule.getOwned() method

getOwned is a convenience method for getting all owned tokens for a particular wallet.

Signature:

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

Parameters

Parameter Type Description
_address string The address to check for token ownership

Returns:

Promise<PackMetadataWithBalance[]>

An array of PackMetadataWithBalance objects that are owned by the address