Pagination for /wallet/addresses and /wallet/transactions
Created by: hudaniel
New to golang. Please let me know what could be improved.
Addressing this Issue: https://github.com/NebulousLabs/Sia/issues/1478
Changes:
Adding an optional page
query to /wallet/addresses
and optional queries confirmPage
and unconfirmedPage
to /wallet/transactions
. Not specifying these queries will return the same response as before to better support the command line tools.
The response of these endpoints given the page queries will reply with a total_pages
field which will tell the client how many pages are left, beginning with 0.