Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

API to retrieve transaction history doesn't support cursors. #50

Open
radicaled opened this issue Oct 8, 2019 · 2 comments
Open

API to retrieve transaction history doesn't support cursors. #50

radicaled opened this issue Oct 8, 2019 · 2 comments

Comments

@radicaled
Copy link

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.

@skyf0xx
Copy link

skyf0xx commented Oct 8, 2019

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.

@delta9
Copy link

delta9 commented Oct 8, 2019

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants