Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.slice.so/llms.txt

Use this file to discover all available pages before exploring further.

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.