We leverage Airstack () to create an aggregated look at the underlying Polygon blockchain.
Just so you know: This API is exposed to anyone who wants to build apps or visuals using the CropXYZ data can pull aggregated on-chain data.
Sample Requests
For the initial launch, we used The Graph so here are a set of sample requests that can be made to The Graph query layer. This is more for demonstrative purposes because this entire logic wil be from Airstack in this relaunch.
Overall Game State
All of the smart contracts report their pause status and contract address.
{
gameStates(first: 20) {
id
address
isPaused
}
}
Query Link:
Crops Details
This requests pulls the basic details of all crops as well as the time it takes to grow these crops.