Burn an NFT
Example
curl --location --request POST 'https://dev.underdogprotocol.com/v2/projects/n/:projectId/nfts/:nftId/burn
--header 'Authorization: Bearer {token}'
const axios = require('axios');
let config = {
method: 'post',
url: 'https://dev.underdogprotocol.com/v2/projects/n/:projectId/nfts/:nftId/burn',
headers: {
'Authorization': 'Bearer {token}'
}
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response
{
"nftId": 1,
"projectId": 1,
"transferable": false,
"transactionId": "3945e22e-6c8d-42ce-894b-6f77b59df7bd",
"mintAddress": "CTASofcsAKVg2wy7xu2r7LFx8H1N8THQCD8vSkvV5dqr"
}
Last updated