Minting an NFT
Endpoint Details
Description
Data
Examples
Last updated
Last updated
{
"result": {
"status": "pending",
"id": "wallet_43fba5e9-e2ae-4417-a198-16c646c7c9f1"
}
}{
"error": {
"code": 400,
"message": "Error message"
}
}curl -X POST "https://sandbox.api.labs.zelus.io/v1/nft/mint" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contractId": "contract_6635e90e-31f0-11ee-be56-0242ac120002",
"nftTokenId": "1",
"quantity": 1,
"walletId": "wallet_43fba5e9-e2ae-4417-a198-16c646c7c9f1"
}'import requests
url = "https://sandbox.api.labs.zelus.io/v1/nft/mint"
headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"contractId": "contract_6635e90e-31f0-11ee-be56-0242ac120002",
"nftTokenId": "2",
"quantity": 1,
"walletId": "wallet_43fba5e9-e2ae-4417-a198-16c646c7c9f1"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())const axios = require('axios');
const url = "https://sandbox.api.labs.zelus.io/v1/nft/mint";
const headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
};
const data = {
contractId: "contract_6635e90e-31f0-11ee-be56-0242ac120002",
nftTokenId: "3",
quantity: 1,
walletId: "wallet_43fba5e9-e2ae-4417-a198-16c646c7c9f1"
};
axios.post(url, data, { headers: headers })
.then(response => console.log(response.data))
.catch(error => console.error(error));