How-to for developers · NFTs

Batch Mint NFTs Using JavaScript

In plain words

This tutorial shows how to build an app that mints, or creates, many NFTs at one time with JavaScript. It sends one transaction after another in a loop and uses tickets to reserve the transaction sequence numbers.

Written by zerps in plain words, from the source linked below.
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 the NFT Modular Samples archive and open batch-minting.html in a browser. Get a test account, either from a seed you already have or as a new account.

The steps in short

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. Otherwise it can only be transferred back to the issuing account. Enter the NFT URL, a URI that points to the data or metadata of the NFT. Set the NFT Taxon, or 0 if you have no use for it. Enter an NFT Count of up to 200 NFTs for one batch, enter the Transfer Fee and click Batch Mint NFTs. The code reads the account's Sequence number, creates tickets for the batch and then mints the NFTs one at a time, one per ticket. Click Get Batch NFTs to see the list, which is fetched 400 NFTs at a time 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

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.