Add batch minting topic

This commit is contained in:
ddawson
2022-10-04 16:36:37 -07:00
parent 3ab096a0a8
commit 06dbf92171

View File

@@ -0,0 +1,42 @@
---
html: nftoken-batch-minting.html
parent: non-fungible-tokens.html
blurb: Minting NFTokens in batches.
filters:
- include_code
labels:
- Non-fungible Tokens, NFTs
status: not_enabled
---
# Batch minting
There are two common approaches to minting NFTokens in batches: mint on demand and scripted minting.
## Mint On Demand (Lazy Minting)
When using a mint on demand model, you and potential customers make buy or sell offers for initial sales of a NFToken off the XRP Ledger. When you are ready to commence the initial sale, you mint the token, create a sell offer or accept a buy offer, then complete the transaction.
### Benefits
* There is little or no reserve requirement for holding unsold NFTokens.
* You mint NFTokens in real time when you know that it will sell.
### Downside
Any market activity prior to the initial sale of the NFToken is not recorded on the XRP Ledger. This might not be an issue for some applications.
## Scripted Minting
Use a program or script to mint many tokens at once. You might find the XRP Ledger ticket functionality helps you submit transactions in parallel, up to a current limit of 200 transactions in one group.
For a practical example, see the [Batch Mint NFTokens](batch-minting.html) tutorial.
### Benefits
* NFTokens are minted ahead of time
* Market activity for the initial sale of the NFToken is captured on the ledger
Downside
You need to retain the appropriate XRP reserve for all of the NFTokens you mint. As a rule of thumb, this is roughly 1/12th XRP per NFToken at the current reserve rate. In the event that you do not have sufficient XRP in reserve, your mint transactions fail until you add sufficient XRP to your account.