From 4e889cbc72078ff98f8c8d8fbba26d5586571589 Mon Sep 17 00:00:00 2001 From: Mackenzie Wildman Date: Wed, 27 Sep 2023 15:48:07 -0700 Subject: [PATCH] add notes on mintRandom --- docs/hub/Guides/open-drop.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/hub/Guides/open-drop.md b/docs/hub/Guides/open-drop.md index 0e6b91e..8a2d216 100644 --- a/docs/hub/Guides/open-drop.md +++ b/docs/hub/Guides/open-drop.md @@ -83,7 +83,7 @@ Upon successful request, you can view the new drop in Hub console, on your Proje Use the `queueMintToDrop` mutation to "load up" your drop with tokens to be minted. -A queued mint does not yet live on chain as an NFT. However, tts asset and metadata are uploaded to decentralized storage in preparation for the later mint. +A queued mint does not yet live on chain as an NFT. However, its asset and metadata are uploaded to decentralized storage in preparation for the later mint. ### Example @@ -139,9 +139,11 @@ To view your queued NFT on Hub console, navigate to the Collection page that's a ## Mint a Queued NFT -After queuing an NFT to an Open Drop, you can mint it into a wallet using the `mintQueued` mutation. The NFT can be minted as either an NFT or cNFT and this choice is made at the time of mint. +After queuing an NFT to an Open Drop, there are two ways to distribute that mint into a wallet. You can mint a specific queued NFT into a wallet using the `mintQueued` mutation or you can mint a randonly selected queued NFT from the drop using the `mintRandomQueuedToDrop` mutation. -### Example +The NFT can be minted as either an NFT or cNFT and this choice is made at the time of mint. + +### Example: `mintQueued` ```graphql mutation QueueMintToDrop($input: QueueMintToDropInput!) { @@ -167,6 +169,32 @@ Variables: } ``` +### Example: `mintRandomQueuedToDrop` + +```graphql +mutation MintRandomQueuedToDrop($input: MintRandomQueuedInput!) { + mintRandomQueuedToDrop(input: $input) { + collectionMint { + id + address + owner + signature + creationStatus + } + } +} +``` +Variables: +```json +{ + "input": { + "drop": "", + "recipient": "", + "compressed": true + } +} +``` + The mint can be either compressed or uncompressed. ## Get All Queued Mints