🖼️Get User's Items

Use this method to get the items of a specific user.

Usage in your script

const response = await alturaUser.getItems();

// customize options
const response = await alturaUser.getItems({
  perPage: 20,
  page: 1,
  sortBy: 'mintDate',
  sortDir: 'desc',
  includeListed: false,
  slim: true,
});

// filter documents by any properties
const response = await alturaUser.getItems(
  {}, // default options
  {
    collectionAddress: "0xdb0047cb1dfc44696f6e9868ef6bb40000280b05"
  } // fetching items with the specified collection address only
)

const items = response.items;
const itemCount = response.count;

Parameters

Last updated