Mint NFT transactions

Mint NFT transactions

POST /generate_wallet/mint_nft

This endpoint facilitates the minting of a new Non-Fungible Token (NFT) on the Movement 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

contractName

string

Name of contract

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

5

usePaymaster

boolean

true to sponsor the transaction or false if user pays for the transaction

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": 5,
  "contractName": "LyncCards",
  "contractAddress": "0xd170636f5bd6c77dc1ae86dea1a3cc9d45926765b8240b7c4503c684a301fa82",
  "functionName": "mint_nft",
  "privateAddress": "0x90bd883b359961954c59ee6a273e5f3165e606ce14fe27183aa61214d4fd8cfc",
  "publicAddress": "0x758b7dba6b61226ea919480edd0e8e20624a1318593f1cb663be8968f6e6e081", 
  "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)
    }
  ],
  "usePaymaster": true, 
  "apiKey": "B30D905974544D082BFEA8A727534195",
}

Last updated