@somnia-chain/markets-sdk / index / CountResult
Type Alias: CountResult
CountResult =
object
Defined in: packages/sdk/src/indexerRead.ts:203
A row count plus whether the read was cut short — same truncated vocabulary
as FundingRateSeries and the hasMore pagers, so a caller reads one
convention across the SDK rather than two.
truncated: false — a real total, from Hasura _aggregate or from a fallback
scan that finished inside the cap. truncated: true — count is a LOWER
BOUND (10,000 rows, the fallback cap); the true total is at least that. Render it
as "10,000+", and do not treat it as the last page when paginating: a
rows.length < count gate goes false while rows remain.
Properties
count
count:
number
Defined in: packages/sdk/src/indexerRead.ts:205
Rows matched, or the fallback cap (10,000) when truncated.
truncated
truncated:
boolean
Defined in: packages/sdk/src/indexerRead.ts:207
True when the bounded fallback hit its cap, so count is a lower bound.