Closed dib542 closed 1 year ago
the pagination options currently accepted are
interface PaginationRequest { key?: string; offset?: number; limit?: number; before?: number; // unix timestamp after?: number; // unix timestamp } interface PaginationResponse { next-key: string | null; }
which is meant to reflect the pagination options available in Cosmos (see any list endpoint in https://docs.cosmos.network/swagger)
interface CosmosPaginationRequest { key?: string; offset?: number; limit?: number; count_total?: boolean; reverse?: boolean; } interface CosmosPaginationResponse { next_key: string | null; total?: string; }
but there are issues that:
pagination.nextKey
limit
next-key
next_key
the pagination options currently accepted are
which is meant to reflect the pagination options available in Cosmos (see any list endpoint in https://docs.cosmos.network/swagger)
but there are issues that:
pagination.nextKey
) returned from a paginated request does not keep the previouslimit
option from the original requestnext-key
name returned doesn't match Cosmos's defaultnext_key
name.