Sync Latest Orders of All Contracts

It's a common practice for you to maintain a database of all orders and periodically sync it with X2Y2 orders by fetching new listing events since a specific timestamp.

To fetch list events, send a request with a created_after parameter set like below:

https://api.x2y2.org/v1/events?type=list&created_after=1655109670

Since the response is paginated, if the next is something other than a null, you need to fetch the next page with the cursor parameter set to the next value.

Once you have fetched all events with specified created_after parameter, it is recommended to store the latest event's created_at timestamp in your memory for another event query later as below:

https://api.x2y2.org/v1/events?type=list&created_after=<new_timestamp>