Batch Mint NFTs Using Python
This tutorial shows how to build an app that mints, or creates, many NFTs at one time with Python. It sends one transaction after another in a loop and uses tickets to reserve the transaction sequence numbers.
- Section
- Tutorials
What you will do
You mint multiple NFTs for a single unique item. The page gives examples: prints of an original artwork, tickets to an event, or another limited set of unique items. Then you fetch the list of NFTs for the account.
What you need
Download or clone the Quickstart Samples, then open and run lesson7-batch-minting.py. Get a test account, called the Standby account, from a seed you already have or as a new account. Click Get Standby Account Info to see its XRP balance.
The steps in short
Enter the NFT URI, which points to the data or metadata of the NFT. Set the Flags field. The page recommends the value 8 for testing, which sets the tfTransferable flag so the NFT can be transferred to another account. Enter the Transfer Fee and the Taxon, or 0 if you do not need a Taxon. Enter an NFT Count of up to 200 NFTs for one batch and click Batch Mint NFTs. The code reads the account's current sequence number, creates the tickets, and then sends the mint transactions in a loop. Each one uses the ticket_sequence field to identify itself. Click Get Batch NFTs to see the list. The code asks for 400 NFTs at a time and follows the marker in each response until all are retrieved.
Why tickets help
Without tickets, the app stops with an error if any transaction fails. With tickets, the app continues to send transactions, and you can look into any single failure afterward.
The transfer fee
The Transfer Fee is a percentage of the proceeds that the original creator receives from future sales of the NFT. It is a value from 0 to 50000, which allows rates between 0.000% and 50.000% in steps of 0.001%. If the Flags field does not make the NFT transferable, set the fee to 0.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made