Circle V2 API Docs
    Preparing search index...

    Function createPaginatedResponse

    • Builds a PaginatedResponse from a pre-fetched items array and a total count. Derives nextCursor from whether more items exist beyond the current page.

      Type Parameters

      • T

      Parameters

      • items: T[]
      • total: number
      • offset: number

      Returns PaginatedResponse<T>