Minting an NFT publishes the NFT on the blockchain, allowing it to be tradable.
Mint an NFT from a collection.
{
"name": "nftitems/01ggdqqd0mkkt7hz57a1g130yq"
"nft": "<nft_collection_name>",
"title": "Fast Car",
"number": "1",
"description": "blazing fast car",
"imageUrl": "https://ipfs-gateway.playfix.io/ipfs/QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"imageCid": "QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"attributes": [
{
"property": {
"name": "eyes",
"value": "brown"
}
}
],
"mintingTransactionHash": "0x7947446dcd2555b6c890634a2240659c8d1b5b7b76609b25d9c313bc6b0c2816"
}
curl --request POST \
--url https://api.playfix.io/nft/<nft_item_name>:markMinted \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <your_access_token>' \
--header 'Content-Type: application/json' \
--data '{
"transactionHash": "0x8b7f9ef613ee8accb04824254029b43b9c88626f1e6c99a99900948455a8a5e9"
}
import requests
import json
nft = "<nft_item_name>"
payload = {
"transactionHash": "0x8b7f9ef613ee8accb04824254029b43b9c88626f1e6c99a99900948455a8a5e9"
}
r = requests.post(
"https://api.playfix.io/nft/" + nft + ":markMinted",
headers = {
"Authorization": "Bearer <your_access_token>",
"Accept": "application/json",
"Content-Type": "application/json"
},
data = json.dumps(payload)
)
print(r.text)
{
"name": "nftitems/01ggdqqd0mkkt7hz57a1g130yq"
"nft": "nfts/01gg72h0znfjggmnq7dyaek0r2",
"title": "Fast Car",
"number": "1",
"description": "blazing fast car",
"imageUrl": "https://ipfs-gateway.playfix.io/ipfs/QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"imageCid": "QmbAVZQhTmRwy57pr4NWuDMhxAC9yzU21GtaGP1f6bay8W",
"attributes": [
{
"property": {
"name": "eyes",
"value": "brown"
}
}
],
"mintingTransactionHash": "0x7947446dcd2555b6c890634a2240659c8d1b5b7b76609b25d9c313bc6b0c2816"
}