Mint
Last updated
Last updated
The NFT Mint endpoint enables a developer to provide a βheadless mintβ via a physical or digital QR code or through a wallet redirect link. The Transaction Request will build a transaction that mints an NFT from the provided CandyMachine public key.
CandyMachine is a tool developed by Metaplex that facilitates the creation, payment, and mint of NFTs.
The 3 methods available to mint NFTs using this endpoint are candy machine, metadata, and upload.
POST
https://api.mtnapi.com/mint
candyMachineId*
String
The Candy Machine ID (public key of candy machine account) for the NFT that the user wants to mint.
cluster
String
Specify Solana devnet or mainnet cluster.
The default value is set to MAINNET.
devMode
String
Set to TRUE to enable dev mode, otherwise set to FALSE. Dev mode will enable error codes to be sent back for transaction failures.
The default value is set to FALSE.
name
String
Name of the NFT.
description
String
The description of the NFT.
symbol
String
The symbol of the NFT (e.g. mtnfren).
uri
String
The location of an uploaded metadata file.
fee
int
The royalty amount (e.g. 500 = 5%)
image
String
The URL of an image location.
attributes
String
The individual attributes of the collection in the format shown in the example (e.g. hats,rock,hats,cowboy,shirt,red,shirt).
account*
string
The public key of the wallet that wants to mint the specified NFT.
GET
https://api.mtnapi.com/mint
candyMachineId*
String
The Candy Machine ID (public key of candy machine account) for the NFT that the user wants to mint.
cluster
String
Specify Solana devnet or mainnet cluster.
The default value is set to MAINNET.
devMode
String
Set to TRUE to enable dev mode, otherwise set to FALSE. Dev mode will enable error codes to be sent back for transaction failures.
The default value is set to FALSE.
account*
string
The public key of the wallet that wants to mint the specified NFT.