🌈Get Items

Use this method to get metadata of multiple Items at the same time.

Usage in your script

const response = await altura.getItems();

// customize options
const response = await altura.getItems({
  perPage: 20,
  page: 1,
  sortBy: 'name',
  sortDir: 'asc',
  slim: true,

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

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


Last updated