mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
moar fixes I found
This commit is contained in:
@@ -9,7 +9,7 @@ status: not_enabled
|
|||||||
# NFToken
|
# NFToken
|
||||||
{% include '_snippets/nfts-disclaimer.md' %}
|
{% include '_snippets/nfts-disclaimer.md' %}
|
||||||
|
|
||||||
The `NFToken` object represents a single non-fungible token (NFT). It is not stored on its own, but is contained in a [NFTokenPage object][] alongside other NFTs.
|
The `NFToken` object represents a single non-fungible token (NFT). It is not stored on its own, but is contained in a [NFTokenPage object][] alongside other `NFToken` objects.
|
||||||
|
|
||||||
Example {{currentpage.name}} JSON
|
Example {{currentpage.name}} JSON
|
||||||
|
|
||||||
@@ -26,12 +26,12 @@ Unlike other objects, `NFToken` has no field to identify the object type or curr
|
|||||||
|
|
||||||
## NFTokenID
|
## NFTokenID
|
||||||
|
|
||||||
NFTokenID, optional, string, Hash256
|
`NFTokenID`, optional, string, Hash256
|
||||||
|
|
||||||
This composite field uniquely identifies a token, and consists of the following sections.
|
This composite field uniquely identifies a token, and consists of the following sections.
|
||||||
|
|
||||||
1. 16 bits that identify flags or settings specific to the NFT
|
1. 16 bits that identify flags or settings specific to the NFToken
|
||||||
2. 16 bits that encode the transfer fee associated with this token, if any
|
2. 16 bits that encode the transfer fee associated with this NFToken, if any
|
||||||
3. A 160-bit account identifier of the issuer
|
3. A 160-bit account identifier of the issuer
|
||||||
4. A 32-bit issuer-specified [NFTokenTaxon](https://www.merriam-webster.com/dictionary/taxon)
|
4. A 32-bit issuer-specified [NFTokenTaxon](https://www.merriam-webster.com/dictionary/taxon)
|
||||||
5. An (automatically generated) monotonically increasing 32-bit sequence number.
|
5. An (automatically generated) monotonically increasing 32-bit sequence number.
|
||||||
@@ -40,7 +40,7 @@ This composite field uniquely identifies a token, and consists of the following
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
The 16-bit flags, transfer fee fields, the 32-bit NFTokenTaxon, and the sequence number fields are stored in big-endian format.
|
The 16-bit flags, transfer fee fields, the 32-bit `NFTokenTaxon`, and the sequence number fields are stored in big-endian format.
|
||||||
|
|
||||||
|
|
||||||
## NFToken Flags
|
## NFToken Flags
|
||||||
@@ -86,7 +86,7 @@ Flags are properties or other options associated with the `NFToken` object.
|
|||||||
</td>
|
</td>
|
||||||
<td><code>0x0008</code>
|
<td><code>0x0008</code>
|
||||||
</td>
|
</td>
|
||||||
<td>If set, indicates that this NFT can be transferred. This flag has no effect if the token is being transferred <em>from</em> the issuer or <em>to</em> the issuer.
|
<td>If set, indicates that this <code>NFToken</code> can be transferred. This flag has no effect if the token is being transferred <em>from</em> the issuer or <em>to</em> the issuer.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -100,7 +100,7 @@ Flags are properties or other options associated with the `NFToken` object.
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
`NFToken `flags are immutable: they can only be set during the `NFTokenMint` transaction and cannot be changed later.
|
`NFToken` flags are immutable: they can only be set during the `NFTokenMint` transaction and cannot be changed later.
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -112,12 +112,12 @@ The example sets three flags: lsfBurnable (0x0001), lsfOnlyXRP (0x0002), lsfTran
|
|||||||
|
|
||||||
### TransferFee
|
### TransferFee
|
||||||
|
|
||||||
The TransferFee value specifies the percentage fee, in units of 1/10,000, charged by the issuer for secondary sales of the token. Valid values for this field are between 0 and 50,000, inclusive. A value of 1 is equivalent to 1bps or 0.01%, allowing transfer rates between 0% and 50%.
|
The `TransferFee` value specifies the percentage fee, in units of 1/10,000, charged by the issuer for secondary sales of the token. Valid values for this field are between 0 and 50,000, inclusive. A value of 1 is equivalent to 1bps or 0.00001%, allowing transfer rates between 0% and 50%.
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
This value sets the transfer fee to 314 bps, or 3.14%.
|
This value sets the transfer fee to 314, or .00314%.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -125,7 +125,7 @@ This value sets the transfer fee to 314 bps, or 3.14%.
|
|||||||
|
|
||||||
### Issuer Identification
|
### Issuer Identification
|
||||||
|
|
||||||
The third section of the NFTokenID is a big endian representation of the issuer’s public address.
|
The third section of the `NFTokenID` is a big endian representation of the issuer’s public address.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -133,15 +133,15 @@ The third section of the NFTokenID is a big endian representation of the issuer
|
|||||||
|
|
||||||
### NFTokenTaxon
|
### NFTokenTaxon
|
||||||
|
|
||||||
The fourth section is a NFTokenTaxon created by the issuer.
|
The fourth section is a `NFTokenTaxon` created by the issuer.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
An issuer might issue several NFTs with the same NFTokenTaxon; to ensure that NFTs are spread across multiple pages, the NFTokenTaxon is scrambled using the fifth section, a dumb 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.
|
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 dumb 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
|
### Token Sequence
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ xrpl-nft-data-token-info-v1 IN TXT "https://host.example.com/api/token-info/{nft
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Replace the string `{nftokenid}` with the requested token’s `NFTokenID` as a 64-byte hex string when you attempt to query information.
|
Replace the string `{nftokenid}` with the requested `NFTokenID` as a 64-byte hex string when you attempt to query information.
|
||||||
|
|
||||||
Your implementation should check for the presence of `TXT` records and use those query strings if present. If no string is present, implementations should attempt to use a default URL. Assuming the domain is _example.com_, the default URL would be:
|
Your implementation should check for the presence of `TXT` records and use those query strings if present. If no string is present, implementations should attempt to use a default URL. Assuming the domain is _example.com_, the default URL would be:
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ https://example.com/.well-known/xrpl-nft/{nftokenid}
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
You create NFTs using the `NFTokenMint` transaction. You can optionally destroy NFTokens using the `NFTokenBurn` transaction.
|
You create `NFToken` objects using the `NFTokenMint` transaction. You can optionally destroy `NFToken` objects using the `NFTokenBurn` transaction.
|
||||||
|
|
||||||
<!--{# common link defs #}-->
|
<!--{# common link defs #}-->
|
||||||
{% include '_snippets/rippled-api-links.md' %}
|
{% include '_snippets/rippled-api-links.md' %}
|
||||||
|
|||||||
@@ -179,15 +179,15 @@ The value of the incremental reserve is, as of this writing, 2 XRP. The table be
|
|||||||
<tr>
|
<tr>
|
||||||
<td><strong>Incremental Reserve</strong>
|
<td><strong>Incremental Reserve</strong>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>1 NFT</strong>
|
<td><strong>1 NFToken</strong>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>8 NFTs</strong>
|
<td><strong>8 NFTokens</strong>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>16 NFTs</strong>
|
<td><strong>16 NFTokens</strong>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>32 NFTs</strong>
|
<td><strong>32 NFTokens</strong>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>64 NFTs</strong>
|
<td><strong>64 NFTokens</strong>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user