-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JS way to fetch claimable balance ID #1070
Conversation
The value of the `Latest-Ledger` HTTP header is the sequence number of the latest ledger known to Horizon at the time the request was processed. | ||
Horizon will guarantee that all the data included in the response is consistent with that ledger. This mechanism prevents race conditions where | ||
a request is processed at the boundary of two ledgers and ensures that the response is consistent with the ledger included in the `Latest-Ledger` HTTP header. | ||
For endpoints which serve data which can change from ledger to ledger (for example an account balance), Horizon includes a `Latest-Ledger` HTTP header in its response. The value of the `Latest-Ledger` HTTP header is the sequence number of the latest ledger known to Horizon at the time the request was processed. Horizon will guarantee that all the data included in the response is consistent with that ledger. This mechanism prevents race conditions where a request is processed at the boundary of two ledgers and ensures that the response is consistent with the ledger included in the `Latest-Ledger` HTTP header. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk why this file changed but seems auto-markdown formatting related
Preview is available here: |
@Shaptic Thanks for implementing this! I have my own instance pending submission, and just wanted to circle around on this since I saw you used Clearly, you helped figure this one out and have gone the extra mile to implement it here! But I think it's intended to get fetched on the actual local object before touching Horizon. Just want to make sure we get this one right 🫱🏻🫲🏽 |
@JFWooten4 ah, very nice point!! I used |
No description provided.