Pagination
Last updated
Was this helpful?
Last updated
Was this helpful?
The SDK (and API) expose the ability to request a specific page of the result set by providing both a page number and a dynamically set page size (this means you control the page size).
Let's start with the following query to return the last 50k NFT transfers on Ethereum:
First, we execute the query.
After executing the query we can request pages of the results. In this example, we'll specify a page size of 10,000 rows per request.
In the above example, we use the page
property of the query result set to determine how many pages exist given a page size of 1000 rows. While in this case, we know there is an upper limit of 50k rows, this is particularly useful when we don't know the total number of rows returned by a query in advance.