kinecosystem/kin-sdk-node

API to retrieve transaction history doesn't support cursors.

Opened this issue · 2 comments

When retrieving an account's transaction history, the result is an array of transactions. Because the paging cursor isn't returned, it's impossible to go back through an account's history more than the max pagination limit of 200 via the Kin SDK.

Being able to paginate via cursor is necessary to locate certain types of transactions in the event that an internal system goes down for a while and it has to "catch up" by going through transaction history after it comes online again.

The API should be directly exposed on horizon (with a cursor). You don't need a special SDK, just you can just use a simple GET request. Here is an example on the test blockchain.

You can also use the laboratory to test the other endpoints, and see the cursors that are returned.

@radicaled use https://horizon-block-explorer.kininfrastructure.com but be advised that it's rate-limited and not meant for mass querying.

https://horizon.kinfederation.com is the main horizon endpoint and purges old transactions / only holds data for 5 days.

This should be documented @yosriz @chaseeb