Mint NFT transactions

Mint NFT transactions

POST /mint-nft

This endpoint facilitates the minting of a new Non-Fungible Token (NFT) on the Metis blockchain. Users can mint a new NFT by specifying some contract information, such as the contract address, contract name, function name, arguments, and other properties. This endpoint requires api key authentication and the necessary transaction parameters, including the wallet address initiating the minting process.

Headers

NameValue

Content-Type

application/json

x-api-key

Your_X_API_Key

Body

NameTypeDescription

contractAddress

string

Contract address

functionName

string

Function you want to do mint transaction on

privateAddress

string

User's private key

publicAddress

string

User's account address

arguments

Array of objects

Object of { argument: string, type: number } If the function accepts any arguments

network

number

1 or 2 (1 for mainnet and 2 for testnet)

apiKey

string

Your api key generated from official website of Lync

Response

{
  "success": true,
  "status": 200,
  "message": "success",
  "data": {
    "transactionHash": "<transaction hash of successfull mint transaction>",
  }
}

Example Request Body

{
  "network": 2,
  "contractAddress": "0xBD38B291206885bB8bceA594E9B2aEE9c0DAc912",
  "functionName": "mintNFT",
  "privateAddress": "0xc58536b5ea99d3b645310765d3fff2d948106b00e4d5adffbb8e16cdc8df4b15",
  "publicAddress": "0x2F9De6C3104EF9Defb98D2Fd5D53DA9306F006EC", 
  "arguments": [
    {
      "argument": "1",
      "type": 1 // (string: 0, number: 1, byte_array: 3, signature: 4)
    },
    {
      "argument": "2",
      "type": 1 // (string: 0, number: 1, byte_array: 3, signature: 4)
    }
  ],
  "apiKey": "2595A9814638758B000F2B1C95AFD931",
}

Last updated