Skip to main content
POST
/
erc721
/
{id}
/
mint
Mint NFT
curl --request POST \
  --url https://lab.trustos.telefonicatech.com/track/v2/erc721/{id}/mint \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'body={
  "name": "NFT Token",
  "description": "A token for testing purposes"
}' \
  --form file=@example-file
{
  "statusCode": 200,
  "message": "Tokens minted successfully",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Token address or symbol.

Example:

"0xabcdef"

Query Parameters

networkId
number
required

Network identifier where the NFT collection contract was deployed.

Example:

10004

to
string
required

Address which will receive the NFT.

Example:

"0xabcdef"

Body

multipart/form-data

Data needed for minting the NFT

file
file
required

Image file which will be displayed on websites like OpenSea. The file must be in JPEG, PNG, SVG or GIF formats.

body
object
required

NFT metadata.

Response

Successful minting.

statusCode
number

Request status code.

Example:

200

message
string

Message returned by the request.

Example:

"Tokens minted successfully"

data
object

Data returned by the request.

Example:
{}
I