Stellar NFT Minting Guide
Last updated
Last updated
This documentation provides step-by-step instructions on how to mint a Non-Fungible Token (NFT) on the Stellar Blockchain.
To mint an NFT on the Stellar blockchain, you will need two accounts:
Issuer Account: This account represents the issuer of the NFT token.
Leaser Account: This account represents the recipient of the NFT token.
These accounts need to be created and funded before proceeding with the minting process.
This step is performed by the leaser. An account on Stellar can only receive an asset if they have provided approval for the asset by trusting the issuer. The transaction is signed by the LEASER_SECRET_KEY
, and we are identifying our NFT as MYNFT:{ISSUER_PUB_KEY}
. We are not setting any trust limit for now.
Note: Please replace {ISSUER_PUB_KEY}
with your actual issuer public key.
This operation is performed by the issuer account. This operation writes data on the issuer account which we can read on our client side. We are currently writing an ipfshash
field, which is a convention followed by Stellar NFT platforms. The field value is the IPFS hash where NFT metadata will reside.
As we need to revoke authorization from a user to spend their balance and even burn their balance, we need this step for the NFT token. This operation is performed by the issuer account.
This is the final step in minting an NFT. It is performed by the issuer account, and it mints a balance of 1 stroop (0.0000001 XLM) for the leaser, identified by Destination. Please make sure the asset code and asset issuer ID are the same that we provided in earlier steps.
Following the similar steps used for minting NFT, we'll create payment tokens. However, there will be some differences:
New accounts will be created to hold Payment token and the Renter balance.
Payment tokens will be minted for the renter.
The number of tokens minted at the Make Payment
step will be somewhere around 10-100000, depending on our requirements.
We wonβt need the Clawback and Authorization flags.