Usage

import { useOrders } from "@slicekit/react"

const { data: orders } = useOrders({
  buyer,
  signature
})

Parameters

buyer
`0x${string}`
required
The address of the buyer.
signature
`0x${string}`
The buyer’s signature required to return full shipping info. If undefined, incorrect or expired, partial shipping info will be returned.
slicerIds
number[]
Store IDs to filter slicerOrders by. Takes precedence over slicerId. If both undefined, all slicerOrders will be returned.
slicerId
number
Store ID to filter slicerOrders by. Overridden by slicerIds if defined. If both undefined, all slicerOrders will be returned.
thegraphApiKey
string
The Graph API key to use for querying the Slice subgraph. If undefined, the developer endpoint is used.
first
number
default:100
The number of orders to return. Defaults to 100.

Return Type

import { type DetailedOrder } from "@slicekit/core"

type Orders = DetailedOrder[]