getMarketplaceAuctionLot

This query pull the all the info specific to auction based sale configured through the mint portal of mojito.

General Pattern

query{
	getMarketplaceAuctionLot(marketplaceAuctionLotId: "UUID"){
  	field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Variables

{
  "lotId": "8e02af7e-7251-4841-b2f4-a8a8324989d9"
}

Sample Query

query getMarketplaceAuctionLot($lotId: UUID!) {
  getMarketplaceAuctionLot(marketplaceAuctionLotId: $lotId) {
    id
    lotNumber
    marketplaceCollectionItem {
      id
      name
      description
      asset {
        currentVersion {
          cdnUrl
        }
      }
      saleType
      status
    }
    startDate
    endDate
    startingBid
    reservePrice
  }
}

Sample Response

{
  "data": {
    "getMarketplaceAuctionLot": {
      "id": "8e02af7e-7251-4841-b2f4-a8a8324989d9",
      "lotNumber": 1,
      "marketplaceCollectionItem": {
        "id": "e1829051-d505-495a-93b2-e3bdba5fc194",
        "name": "NFT Collection Sale 1 Achajuanada",
        "description": null,
        "asset": {
          "currentVersion": {
            "cdnUrl": "https://storage.googleapis.com/mojito-prod-public/organizations/d4191c0a-8020-4a6a-bdb9-461d92b8c2de/images/3a03a5c8-5e0d-454d-b8b5-d178103736d2.png?z=1"
          }
        },
        "saleType": "Auction",
        "status": "Active"
      },
      "startDate": "2023-05-24T16:00:41Z",
      "endDate": "2023-05-31T16:00:41Z",
      "startingBid": 1,
      "reservePrice": 10
    }
  }
}

Arguments

NameTypeDescriptionRequired
lotIdUUIDRepresents the marketplace auction lot ID which can be collected from Mint Portal or support team. This field can be fetched from the query "collection" from previous section on the field -> collection.items.idYes

Fields

NameTypeDescription
MarketplaceAuctionLotObjectContains all the information from MarketplaceAuctionLot such as number, reserve price, status, current bid, etc..