Skip to content

Commit

Permalink
add notes on mintRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenziewildman committed Sep 27, 2023
1 parent 11bbbae commit 4e889cb
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions docs/hub/Guides/open-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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!) {
Expand All @@ -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": "<DROP-ID>",
"recipient": "<DESTINATION-WALLET-ADDRESS>",
"compressed": true
}
}
```

The mint can be either compressed or uncompressed.

## Get All Queued Mints
Expand Down

0 comments on commit 4e889cb

Please sign in to comment.