mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-27 23:25:51 +00:00
Add collections topic
This commit is contained in:
18
content/concepts/tokens/nft-collections.md
Normal file
18
content/concepts/tokens/nft-collections.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
html: nft-collections.html
|
||||
parent: non-fungible-tokens.html
|
||||
blurb: You can mint NFTs as collections using the NFT Taxon field.
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
# Minting NFTs into Collections
|
||||
|
||||
You can use the `NFTokenTaxon` field to group NFTs into collections. As the minter, you can choose any numeric value from `0x0` to `0xFFFFFFFF`and assign it to NFTs as you create them. The significance of the taxon is entirely up to you.
|
||||
|
||||
For example, for your first collection, you might set the `NFTokenTaxon` to `1`. You might have a collection of NFTs with taxon values of `316`, `420`, or `911`. You might use taxons that start with a digit to indicate the type of NFT (for example, all Real Estate NFTs have a taxon that starts with `2`).
|
||||
|
||||
While the `NFTokenTaxon` field is required, you can set the value to `0` if you don't intend to create a collection.
|
||||
|
||||
See [NFTokenTaxon](nftoken.html#nftokentaxon).
|
||||
|
||||
@@ -98,14 +98,15 @@ The fourth section is a `NFTokenTaxon` created by the issuer.
|
||||
|
||||
An issuer might issue several `NFToken` objects with the same `NFTokenTaxon`; to ensure that `NFToken` objects are spread across multiple pages, the `NFTokenTaxon` is scrambled using the fifth section, a sequential number, as the seed for a random number generator. The scrambled value is stored with the `NFToken`, but the unscrambled value is the actual `NFTokenTaxon`.
|
||||
|
||||

|
||||
|
||||
Notice that the scrambled version of the `NFTokenTaxon` is `0xBC8B858E`: the scrambled version of the `NFTokenTaxon` specified by the issuer. But the _actual_ value of the `NFTokenTaxon` is the unscrambled value.
|
||||
Notice that the scrambled version of the `NFTokenTaxon` is `0xBC8B858E`, the scrambled version of the `NFTokenTaxon` specified by the issuer. But the _actual_ value of the `NFTokenTaxon` is the unscrambled value.
|
||||
|
||||
### Token Sequence
|
||||
|
||||
The fifth section is a sequence number that increases with each `NFToken` the issuer creates. 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 fifth section is a sequence number that increases with each `NFToken` the issuer creates.
|
||||
|
||||

|
||||
|
||||
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