Merge pull request #1756 from XRPLF/add_nft_fixed_supply

add nft fixed supply topic
This commit is contained in:
Dennis Dawson
2023-02-21 15:34:52 -08:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
---
html: nft-fixed-supply.html
parent: non-fungible-tokens.html
blurb: Use a new account to mint a fixed number of NFTs, then black hole the account.
labels:
- Non-fungible Tokens, NFTs
---
# Guaranteeing a Fixed Supply of NFTs
For some projects, you might want to guarantee that no more than a fixed number of NFTs are minted from an issuing account.
To guarantee a fixed number of NFTs:
1. Create and fund a new account, the _Issuer_. This account is the issuer of the tokens within the collection. See [Creating Accounts](accounts.html#creating-accounts).
1. Use `AccountSet` to assign your operational wallet as an authorized minter for the issuer. See [Authorizing Another Account to Mint Your NFTs](nftoken-authorized-minting.html).
1. Use your operational account to mint the tokens using `NFTokenMint`. The operational wallet holds all of the tokens minted for the Issuer. See [Batch Minting](nftoken-batch-minting.html).
1. Use `AccountSet` to remove your operational wallet as an authorized minter for the Issuer.
1. “Blackhole” the Issuer account. See [Disable Master Key Pair](disable-master-key-pair.html).
At this point, it is impossible for any new tokens to be minted with the issuers address as the issuing account.
**Caution** Once you "blackhole" the account, no one, including you, receives transfer fees for future sales of the NFTs.

View File

@@ -106,7 +106,7 @@ The fifth section is a sequence number that increases with each `NFToken` the is
![Sequence Number](img/nftokene.png "Sequence Number")
The [`NFTokenMint` transaction][] sets this part of the `NFTokenID` automatically based on the `MintedTokens` field of the `Issuer` account. If the issuer's [`AccountRoot` object][] does not have a `MintedTokens` field, the field is assumed to have the value 0; the value of the field is then incremented by exactly 1.
The [NFTokenMint transaction][] sets this part of the `NFTokenID` automatically based on the `MintedTokens` field of the `Issuer` account. If the issuer's [AccountRoot object][] does not have a `MintedTokens` field, the field is assumed to have the value 0; the value of the field is then incremented by exactly 1.
## URI