@somnia-chain/markets-sdk / index / countOrders
Function: countOrders()
countOrders(
owner,opts?,indexerUrl,headers?):Promise<number>
Defined in: query.ts:1205
Server-side COUNT of owner's orders matching an OrdersOptions
filter (Hasura Order_aggregate) — so an order-history page paginates
against a real total without fetching every row. Privileged _aggregate
role (server-only), with the bounded row-count fallback on the public role.
Parameters
owner
string
opts?
OrdersOptions = {}
indexerUrl
string
headers?
Record<string, string>
Returns
Promise<number>