-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Describe the bug
The pagination.reverse=true parameter on the BME ledger LCD endpoint has no effect — records are always returned in ascending order by block height.
To Reproduce
- Open this URL: https://testnetapi.akashnet.net/akash/bme/v1/ledger?filters.source=akash1ss0d2yw38r6e7ew8ndye9h7kg62sem36zak4d5&pagination.limit=5&pagination.offset=0&pagination.reverse=true
- Observe records are in ascending height order (oldest first)
- Compare with reverse=false: https://testnetapi.akashnet.net/akash/bme/v1/ledger?filters.source=akash1ss0d2yw38r6e7ew8ndye9h7kg62sem36zak4d5&pagination.limit=5&pagination.offset=0&pagination.reverse=false
- Same order in both cases
Expected behavior
When pagination.reverse=true is set, records should be returned in descending order (newest first), consistent with other cosmos SDK paginated endpoints.
Additional context
Console needs to display mint/burn history with newest records first. Without server-side reverse ordering, we have to fetch the total count first and then calculate reversed offsets manually, which adds an extra request per page load.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels