Usage

import { getSelectedProducts } from "@slicekit/core"

const cartProducts = await getSelectedProducts({
  products,
  buyer
})

Parameters

products
ProductsBySlicer[]
required
List of products to fetch.
import { ProductsBySlicer } from "@slicekit/core"
buyer
`0x${string}` | undefined
Address of the buyer, used to determine eventual discounts. If not provided, base prices are returned.

Return Type

cartProducts
ProductCart[]
List of products available in the store.