Mint NFT

Mint an ERC-1155 NFT.

About

Use this action to mint an NFT from a deployed ERC-1155 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-1155 smart contract.

Parent Element

Smart Contracts Actions

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

Action Name

ERC-1155 - Mint NFT 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)

Custom Attributes

Custom Attributes

Custom attributes can be used to give NFTs different levels of rarity based on the NFT's metadata.

Here's an example of a BAYC's NFT custom attributes (referred to as properties on OpenSea).

Input your custom attributes in the JSON scheme below.

There is no limit to the amount attributes you can add.

[
  {"trait_type":"XP Points","value":"770"}, 
  {"trait_type":"Species","value":"Rare"}, 
  {"trait_type":"Background","value":"Blue"}
]

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-1155 - Token ID

The token ID of the minted ERC-1155.

ERC-1155 - Mint Error

The error that occurred while minting an ERC-1155.

Events

ERC-1155 - NFT Minted

An ERC-1155 was successfully minted.

ERC-1155 - Mint Error

An error occurred while minting an ERC-1155 NFT.

More questions? Join our Discord

Last updated