Usage

import { getProduct } from "@slicekit/core"

const product = await getProduct({
  slicerId,
  productId,
  buyer
})

Parameters

slicerId
number
required
ID of the slicer to get the product from.
productId
number
required
ID of the product to fetch.
buyer
`0x${string}` | undefined
Address of the buyer, used to determine eventual discounts. If not provided, base prices are returned.

Return Type

product
ProductCart
Product data.