mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 07:35:50 +00:00
Use amendment disclaimer & update tx ref intros
This commit is contained in:
@@ -4,29 +4,16 @@ seo:
|
||||
labels:
|
||||
- Non-fungible Tokens, NFTs
|
||||
---
|
||||
|
||||
# Dynamic Non-Fungible Tokens (dNFTs)
|
||||
|
||||
Standard NFTs are immutable. Some use cases would benefit from the capability to update the referenced data object after the initial minting of an NFT. For example, a concert ticket for a postponed event could be updated with an alternate date, or a virtual trading card for an athlete could be periodically updated with current statistics. Dynamic Non-Fungible Tokens (dNFTs) provide the flexibility required for these use cases.
|
||||
Standard NFTs are immutable. In some use cases, you need to update the referenced data object after the initial minting of an NFT. For example, a concert ticket for a postponed event could be updated with an alternate date, or a virtual trading card for an athlete could be periodically updated with current statistics. Dynamic Non-Fungible Tokens (dNFTs) provide the flexibility required for these use cases.
|
||||
|
||||
## Creating a dNFT
|
||||
|
||||
When minting a new NFT, set the `tfMutable` flag (`0x00000010`) to enable the ability to update the NFT's `URI` field.
|
||||
When minting a new NFT, enable the `tfMutable` flag (`0x00000010`) to make the NFT mutable.
|
||||
|
||||
## Modifying a dNFT
|
||||
|
||||
Use the `NFTokenModify` transaction to update the URI field of a dNFT. Provide the `Account` of the issuer or an authorized minter, the `Owner` of the dNFT (if different than the `Account` address), the `NFTokenID`, and the `URI` to the new object data.
|
||||
The issuer, or their authorized minter, can modify a dNFT at any time, by sending a [NFTokenModify transaction][]. Only the `URI` field of the NFT can be changed this way.
|
||||
|
||||
### Sample NFTokenModify Transaction
|
||||
|
||||
```json
|
||||
{
|
||||
"TransactionType": "NFTokenModify",
|
||||
"Account": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
|
||||
"Owner": "rogue5HnPRSszD9CWGSUz8UGHMVwSSKF6",
|
||||
"Fee": "10",
|
||||
"Sequence": 33,
|
||||
"NFTokenID": "0008C350C182B4F213B82CCFA4C6F59AD76F0AFCFBDF04D5A048C0A300000007",
|
||||
"URI": "697066733A2F2F62616679626569636D6E73347A736F6C686C6976346C746D6E356B697062776373637134616C70736D6C6179696970666B73746B736D3472746B652F5665742E706E67",
|
||||
}
|
||||
```
|
||||
{% raw-partial file="/docs/_snippets/common-links.md" /%}
|
||||
|
||||
@@ -11,7 +11,7 @@ labels:
|
||||
|
||||
The XRP Ledger natively supports non-fungible tokens (NFTs, or “nifties” in the vernacular). Non-fungible tokens serve to encode ownership of unique physical, non-physical, or purely digital goods, such as works of art or in-game items.
|
||||
|
||||
_(Added by the [NonFungibleTokensV1_1 amendment][].)_
|
||||
{% amendment-disclaimer name="NonFungibleTokensV1_1" /%}
|
||||
|
||||
To represent digital assets similar to these, use the XRP Ledger's Non-Fungible Tokens feature (sometimes referred to by its standards draft number, [XLS-20](https://github.com/XRPLF/XRPL-Standards/discussions/46)).
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ labels:
|
||||
|
||||
You can transfer NFTs between accounts on the XRP Ledger. You can offer to buy or sell an NFT, or accept offers from other accounts to buy an NFT you own. You can even give away an NFT by offering to sell it at a price of 0. All offers are created using [NFTokenCreateOffer transaction][].
|
||||
|
||||
_(Added by the [NonFungibleTokensV1_1 amendment][].)_
|
||||
{% amendment-disclaimer name="NonFungibleTokensV1_1" /%}
|
||||
|
||||
## Reserve Requirements
|
||||
|
||||
|
||||
Reference in New Issue
Block a user