Axie GraphQL Docs
GetLandsGrid
GetLandsGrid
Fetches a list of the current lands.
Endpoint (Updated)
https://graphql-gateway.axieinfinity.com/graphql
Body
You can modify the query string to include fields that you want to be included or not. Refer to the GraphQL Schema below for a full overview.
{ "operationName": "GetLandsGrid", "variables": { "from": 0, "size": 24, "sort": "PriceAsc", "auctionType": "Sale", "criteria": {} }, "query": "query GetLandsGrid($from: Int!, $size: Int!, $sort: SortBy!, $owner: String, $criteria: LandSearchCriteria, $auctionType: AuctionType) {\n lands(criteria: $criteria, from: $from, size: $size, sort: $sort, owner: $owner, auctionType: $auctionType) {\n total\n results {\n ...LandBriefV2\n __typename\n }\n __typename\n }\n}\n\nfragment LandBriefV2 on LandPlot {\n tokenId\n owner\n landType\n row\n col\n auction {\n currentPrice\n startingTimestamp\n currentPriceUSD\n __typename\n }\n ownerProfile {\n name\n __typename\n }\n __typename\n}\n"}
Full GraphQL Query Schema
query GetLandsGrid( $from: Int! $size: Int! $sort: SortBy! $owner: String $criteria: LandSearchCriteria $auctionType: AuctionType) { lands( criteria: $criteria from: $from size: $size sort: $sort owner: $owner auctionType: $auctionType ) { total results { ...LandBriefV2 __typename } __typename }}
fragment LandBriefV2 on LandPlot { tokenId owner landType row col auction { currentPrice startingTimestamp currentPriceUSD __typename } ownerProfile { name __typename } __typename}
Variables
Brief overview of the variable fields for this operation
Variable | Required | Data Type |
---|---|---|
from | Yes | Integer |
size | Yes | Integer |
sort | Yes | String |
auctionType | No | String |
owner | No | String |
criteria | No | Map |
Refer to the succeeding sections for more details about the variables and their valid values
From
Offset index of the results.
Any integer value. Signed or unsigned. Default is 0.
Size
Size of the result. The max size can vary based on the requesting source.
Any integer value. Signed or unsigned. Default is 20.
Sort
Sorting option of the results
PriceAsc, PriceDesc, Latest
AuctionType
Marketplace state of the Axie
All, Sale
Owner
Ronin address of the owner
Example: 0x2ebd51e17b56e9cea3317e8d13ab99ffb168427c
Criterias
Brief overview of the fields you can include in the criteria variable
Variable | Required | Data Type |
---|---|---|
landType | No | String Array |
LandType
Types of the lands
Edit this page on GitHubGenesis, Arctic, Savannah, Forest, Mystic