This query pulls the info of particular sale you wanted to run. This is configured on mint portal and be fetched on any of the client facing applications.
General Pattern
query{
collection(id: "UUID"){
field_1
field_2 {
nested_field_1
...
}
}
}
Sample Variables
{
"dropId": "0582257c-49e1-4048-85bd-6123962f1d88"
}
Sample Query
query ($dropId: String!) {
collection(id: $dropId) {
id
marketplaceID
name
slug
description
status
startDate
endDate
itemsCount
items {
id
saleType
name
slug
status
asset {
currentVersion {
cdnUrl
__typename
}
__typename
}
details {
... on MarketplaceAuctionLot {
id
status
startDate
endDate
lotNumber
startingBid
reservePrice
__typename
}
}
}
dropType
__typename
}
}
Sample Response
{
"data": {
"collection": {
"id": "0582257c-49e1-4048-85bd-6123962f1d88",
"marketplaceID": "3a4a5771-b3bb-4afe-8d9b-36c22e997f7a",
"name": "Mercedes Dutch Drop",
"slug": "mercedes-dutch-drop",
"description": "Mercedes Dutch Drop sells set of NFTs on the mint on demand basis. NFTs minted and delivered on real time.",
"status": "Active",
"startDate": "2023-05-24T16:00:10Z",
"endDate": "2023-05-31T16:00:10Z",
"itemsCount": 1,
"items": [
{
"id": "e1829051-d505-495a-93b2-e3bdba5fc194",
"saleType": "Auction",
"name": "NFT Collection Sale 1 Achajuanada",
"slug": "nft-collection-sale-1-achajuanada",
"status": "Active",
"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",
"__typename": "AssetVersion"
},
"__typename": "Asset"
},
"details": {
"id": "8e02af7e-7251-4841-b2f4-a8a8324989d9",
"status": "Hidden",
"startDate": "2023-05-24T16:00:41Z",
"endDate": "2023-05-31T16:00:41Z",
"lotNumber": 1,
"startingBid": 1,
"reservePrice": 10,
"__typename": "MarketplaceAuctionLot"
}
}
],
"dropType": "SALE",
"__typename": "MarketplaceCollection"
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
id | UUID | Represents the marketplace drop ID. This is high level hierarchy which can run multiple sales under this like auction or buynow or any other sale type supported for your organization. | Yes |
Fields
Name | Type | Description |
---|---|---|
MarketplaceAuctionLot | Object | Contains all the information from MarketplaceAuctionLot such as number, reserve price, status, current bid, etc. |