Auctions
Queries
saleAuction
saleAuctionReturns a single Sale Auction according to its id.
saleAuction(id: ID!): AuctionsaleAuctions
saleAuctionsReturns multiple Sale Auctions according to the arguments passed.
saleAuctions(
skip: Int
first: Int
orderBy: AuctionOrderBy
orderDirection: OrderDirection
where: AuctionFilter
): [Auction]!assistingAuction
assistingAuctionReturns a single Assisting Auction according to its id.
assistingAuction(id: ID!): AuctionassistingAuctions
assistingAuctionsReturns multiple Assisting Auctions according to the arguments passed.
petAuction
petAuctionReturns a single Pet Auction according to its id.
petAuctions
petAuctionsReturns multiple Pet Auctions according to the arguments passed.
Object Types
Auction
AuctionThe Auction object type contains the following fields:
Basic Information
id:ID- the Auction ID. Crystalvale IDs are padded by10000000000000(ten trillion), and Serendale (Klaytn) IDs are padded by20000000000000(twenty trillion).seller:Profile- theProfileof the Auction sellertokenId:Hero- theHerobeing Sold/Rented
The tokenId field will return current values for the Hero, not its historical values at the time of the Auction.
startingPrice:String- the price set at the start of the Auction in weiendingPrice:String- the price at the end of the Auction in weiduration:Int- the duration of the Auction in seconds; not currently in usestartedAt:Int- the Unix timestamp of the Auction startwinner:Profile- theProfileof the Auction winner; will be pre-filled for Private Auctions, even whenopenendedAt:Int- the Unix timestamp of the Auction endopen:Boolean- whether the Auction is open or notpurchasePrice:String- the price paid by thewinnerin wei
PetAuction
PetAuctionThe PetAuction object type contains the following fields:
Basic Information
id:ID- the Auction IDseller:Profile- theProfileof the Auction sellertokenId:Pet- thePetbeing SoldstartingPrice:String- the price set at the start of the Auction in weiendingPrice:String- the price at the end of the Auction in weiduration:Int- the duration of the Auction in seconds; not currently in usestartedAt:Int- the Unix timestamp of the Auction startwinner:Profile- theProfileof the Auction winner; will be pre-filled for Private Auctions, even whenopenendedAt:Int- the Unix timestamp of the Auction endopen:Boolean- whether the Auction is open or notpurchasePrice:String- the price paid by thewinnerin wei
Examples
Example 1
The first 100 open, non-private Sale Auctions sorted by lowest priced Hero:
Example 2
The five most expensive Pet sales that were successfully completed:
Example 3
The entire Sale history (successful or not) of an individual Hero:
Example 4
All successful Rentals (Assisting Auctions) purchased by an individual player:
Last updated
