βš™οΈ
mtnAPI Docs πŸ‘¨πŸ»β€πŸ”¬
  • mtnAPI Overview
    • Introduction
    • Terminology
  • Getting Started
  • How It Works
  • FAQ
  • Reference
    • API Reference
      • Pay
        • Token Discount Payments
        • Token Gated Payments
        • Token Swapped Payments
        • SOL & SPL Payments
      • Mint
        • Candy Machine
        • Metadata
        • Upload
      • Intent Key
      • Reference Key
      • Status
      • Validate
  • Supported Tokens
  • Testing
Powered by GitBook
On this page
  • Powered by
  • Returns a transaction to mint an NFT
  • The GET request will return mint information
  1. Reference
  2. API Reference

Mint

PreviousSOL & SPL PaymentsNextCandy Machine

Last updated 2 years ago

Powered by

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

account*

string

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

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