Get NFT properties
NFT properties are the attributes each NFT has.
Request: Get NFT properties and meta-data:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/non-fungible-assets/{{token_id}}',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'Bearer': 'API-TOKEN'
},
}
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
import requests
url = "https:/api.aqua.test.krayondigital.com/main/api/v1/non-fungible-assets/{{token_id}}"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response:
{
"data": {
"id": "387f6aebb446431a8dacf1c04f8ed072",
"wallet": "abba414070e149648c60e7dd811072b9",
"token_id": "12345",
"symbol": "MFNFT",
"extra_detail": {
"image": "https://example.com/image.png",
"name": "My NFT",
"attributes": [
"Smile",
"Mohawk",
"Glasses"
],
"description": "Male"
}
}
}
Updated 9 months ago