Batch Mint NFTs

Mint many ERC-721 NFTs.

About

Use this action to batch-mint NFTs from a deployed ERC-721 smart contract.

What do you mean by "mint from a smart contract"?

Think of an NFT smart contract as a factory that builds NFTs. When you deploy a new NFT smart contract you are building a factory that can be used to create any number of NFTs.

When you trigger the "Mint NFT" action on a smart contract you are using the "factory" to create a new NFT. There is no limit to the number of NFTs that can be created from one smart contract.

This action can only be called by the deployer of the ERC-721 smart contract.

Parent Element

Smart Contracts Actions

Drop this element onto the page first to access this action.

Action Name

ERC-721 - Batch Mint NFTs a Smart Contracts Actions.

Action Parameters

Press "Show Documentation" under the input for more information on each field.

The connected wallet must have a balance of "Native Token" to cover the network fee for interacting with the contract. (eg. ETH on Ethereum, or MATIC on Polygon)

Metadata

Follow the JSON scheme below for your NFT metadata.

The only required metadata field to be included is the Name.

The description, image, external URL, and attributes are optional.

Only add custom feilds to the custom attributes array.

[{
"name":"NFT #1",
"description":"My awesome NFT number 1",
"image":"ipfs://QmYKNg4oN9B34yiT14R6JDueNKgVTYfNuuigkJo8jj57Mk",
"external_url":"https://theweb3toolbox.com/",
"attributes":
  [{"trait_type":"XP Points","value":"1263"}, 
   {"trait_type":"Species","value":"Rare"}, 
   {"trait_type":"Background","value":"Blue"}]
},
{
"name":"NFT #2",
"description":"My awesome NFT number 2",
"image":"ipfs://QmYKNg4oN9B34yiT14R6JDueNKgVTYfNuuigkJo8jj57Mk",
"external_url":"https://theweb3toolbox.com/",
"attributes":
  [{"trait_type":"XP Points","value":"10000"}, 
   {"trait_type":"Species","value":"Super Rare"}, 
   {"trait_type":"Background","value":"Gold"}]
}]

Gasless Transaction 😱

As mentioned above, when a user would like to claim an NFT from your smart contract they must hold a balance of native tokens in their connected wallet to pay the network fee (gas fee) to claim the NFT from your contract.

This can lead to poor UX for new web3 users!

A solution to this problem is to use a Biconomy relayer to cover this gas fee for your users. All your user will need to do is sign a transaction with their connected wallet, then the transaction will be relayed to your Biconomy account to pay the gas fee to claim the NFT.

Learn how to set up a Biconomy relayer here

Exposed States

The following states are available once this action has run.

ERC-721 - Token ID

An array/list of the token IDs that were minted.

ERC-721 - Batch Mint Error

The error occurred while batch minting an ERC-721s NFTs.

Events

ERC-721 - NFTs Batch Minted

ERC-721 NFTs were successfully batch minted.

ERC-721 - Batch Mint Error

An error occurred while batch minting an ERC-721 NFTs.

More questions? Join our Discord

Last updated