Mint

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.

Returns a transaction to mint an NFT

POST https://api.mtnapi.com/mint

Query Parameters

NameTypeDescription

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).

Request Body

NameTypeDescription

account*

string

The public key of the wallet that wants to mint the specified NFT.

{
    transaction: "<transaction>"
}

The GET request will return mint information

GET https://api.mtnapi.com/mint

Query Parameters

NameTypeDescription

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.

Request Body

NameTypeDescription

account*

string

The public key of the wallet that wants to mint the specified NFT.

{
    label: "<Name of NFT>",
    icon: "<NFT logo>"
}

Last updated