XRP Ledger Standards
XLS-0052 Final Amendment

NFTokenMintOffer

Extension to NFTokenMint transaction to allow NFToken Sell Offer creation at the same time as minting

Author
tequ
Created
2023-11-21
Updated
2026-12-02
Requires
XLS-20
Discussion
XRPLF/XRPL-Standards/discussions/147

1. Abstract

This proposal extends the minting capabilities of NFToken (XLS-20).

NFTokenOfferMint extends the existing NFTokenMint transaction to allow an NFToken Sell Offer to be created at the same time as the NFToken is minted.

2. Motivation

NFToken are not only held by the issuer, but are often distributed or sold by the issuer to others.

XRPL NFToken requires two transactions (NFTokenMint and NFTokenCreateOffer) to be sent by the issuer before the NFToken can be minted and distributed (or sold).

NFTokenOfferMint is expected to significantly improve the experience of NFT projects and users.

3. Specification

3.1. Transaction: NFTokenMint

3.1.1. Fields

Add 3 new fields to the NFTokenMint transaction.

Field Name Required JSON Type Internal Type Default Value Description
Amount No Currency Amount AMOUNT N/A Has the same meaning as the field of the same name used in the NFTokenCreateOffer transaction, but the Amount field is not a required field.
Destination No string ACCOUNT N/A Has the same meaning as the field of the same name used in the NFTokenCreateOffer transaction.
Expiration No number UINT32 N/A Has the same meaning as the field of the same name used in the NFTokenCreateOffer transaction.

If the Amount field (and the other 2 fields) are not specified, NFTokenMint transaction behaves exactly like a previous NFTokenMint transaction.

3.1.2. Transaction Fee

The fee for this transaction does not change.

3.1.3. Failure Conditions

3.1.3.1. Data Verification
  1. One or both of Destination and Expiration fields are specified, but the Amount field is not. (TODO: content pass — result code.)
3.1.3.2. Protocol-Level Failures

TODO: content pass.

3.1.4. State Changes

On Success (tesSUCCESS):

  1. Since NFToken issuers can only create a sell offer for their NFToken, the Owner field is not set and tfSellNFToken flag is always set in the NFTokenOffer created in an NFTokenMint transaction.
  2. In an extended NFTokenMint transaction, an NFTokenOffer is created when Amount field is specified.
  3. The NFTokenPage and NFTokenOffer reserves will not change, but will create the possibility of up to 2 incremental reserves (NFTokenPage, NFTokenOffer) in an NFTokenMint transaction.

3.1.5. Example JSON

TODO: content pass.

4. Rationale

TODO: content pass.

5. Security Considerations

TODO: content pass.