APIAuction
Get Auction Round By Number
The getAuctionByNumber query is used to retrieve a specific auction round based on its round number.
Query: getAuctionByNumber
Schema:
getAuctionByNumber(
round: Int!
): AuctionParameters
round(Int): The round number of the auction to retrieve. This field is mandatory.
Return
The query returns the Auction object that has the specified round number.
Example Query
The following is an example of how to use the getAuctionByNumber query to retrieve an auction round by its round number:
query {
getAuctionByNumber(
round: 12
) {
id,
round,
startedAt,
duration,
totalToken,
minPrice,
avatar {
groupId,
compId
},
token,
status
}
}In this example, the query retrieves the auction round with the round number 12. The returned Auction object includes id, round, startedAt, duration, totalToken, minPrice, avatar, token, and status of the auction.