NFT

Mint new NFT to a specified address.

Changed on

The mint endpoint allows authorized users to mint new NFT on the Mina blockchain. This transaction creates new NFT. The sender must have the authority to mint NFTs, typically the admin of the NFT contract.

post/nft/mint

Request

  • Base URL: https://minatokens.com/api/v1
  • URL: https://minatokens.com/api/v1/nft/mint
  • Auth: API key in header x-api-key

Request body

txType'nft:mint' required

Must be "nft:mint"

collectionAddressstring required

The address of the NFT collection.

nftAddressstring

Optional. The address of the NFT.

senderstring required

The address (public key) of the sender.

senderPrivateKeystring

The private key of the sender. It is NOT recommended to use this field. Please use the sender field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.

nonceinteger

Optional. The nonce for the transaction.

feeinteger

Optional. The fee for the transaction.

memostring

Optional. A memo for the transaction.

developerFeenumber double

Optional. The developer fee for the transaction.

Response

Successfully built mint transaction.

senderstring required

The address initiating the transaction.

nonceinteger required

The nonce for the transaction.

memostring required

A memo for the transaction.

feenumber double required

The fee for the transaction.

proverPayloadstring required

The payload for the prover.

signedDatastring required

The signed data for the transaction.

transactionstring required

The raw transaction data.

sendTransactionboolean

Optional. Whether to broadcast the transaction after proving.

symbolstring required

The symbol of the NFT collection.

collectionNamestring required

The name of the NFT collection.

nftNamestring required

The name of the NFT.

storagestring

The storage of the NFT (IPFS hash).

privateMetadatastring

The private metadata of the NFT.

metadataRootstring

The metadata root of the NFT.

mapobject

The serialized metadata map of the NFT.

Changes

    • info

      added the new optional request property ////////

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • info

      added the optional property ////////////////// to the response with the status

    • breaking

      the response property ///////////////// became optional for the status

    • breaking

      the response property ///////////////// became optional for the status

    • breaking

      the response property ///////////// became optional for the status

    • info

      the request property /// became optional