mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 11:55:50 +00:00
Merge pull request #1756 from XRPLF/add_nft_fixed_supply
add nft fixed supply topic
This commit is contained in:
23
content/concepts/tokens/nft-fixed-supply.md
Normal file
23
content/concepts/tokens/nft-fixed-supply.md
Normal 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 issuer’s address as the issuing account.
|
||||
|
||||
**Caution** Once you "blackhole" the account, no one, including you, receives transfer fees for future sales of the NFTs.
|
||||
@@ -106,7 +106,7 @@ The fifth section is a sequence number that increases with each `NFToken` the is
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user