Get NFT collections
Request: Get organization NFTs collections:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/nft-collections',
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/nft-collection"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response:
{
"count": 3,
"next": null,
"previous": null,
"data": [
{
"id": "mkvk5nb040cedb142478b97ecd835bj29ck310",
"address": "0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc",
"name": "SomeNFT",
"symbol": "SOMNFT",
"blockchain": "ethereum",
"logo_uri": "https://logo_metadata.com",
"image_url": "https://contract_image.jpg"
},
{
"id": "19vk5nb040cedb142478b97ecd835bj29ck3bm",
"address": "0x93j5c5cdd03b3cbb5ade6be69e0e9c730c1dkf92s",
"name": "SomeNFT",
"symbol": "SOMNFT",
"blockchain": "ethereum",
"logo_uri": "https://logo_metadata.com",
"image_url": "https://contract_image.jpg"
},
{
"id": "4kf0sjf2lj3gjsa78b97ecd835bj29ck3bm",
"address": "0x12njlfs940g5020ncawfbcs9e0e9c730c1hyq1g5",
"name": "SomeNFT",
"symbol": "SOMNFT",
"blockchain": "ethereum",
"logo_uri": "https://logo_metadata.com",
"image_url": "https://contract_image.jpg"
}
]
}
Request: Get wallet's NFTs collections:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/nft-collections?wallet_id=123456789',
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/nft-collections?wallet_id=123456789"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Resposne:
{
"count": 2,
"next": null,
"previous": null,
"data": [
{
"id": "mkvk5nb040cedb142478b97ecd835bj29ck310",
"address": "0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc",
"name": "SomeNFT",
"symbol": "SOMNFT",
"blockchain": "ethereum",
"logo_uri": "https://logo_metadata.com",
"image_url": "https://contract_image.jpg"
},
{
"id": "19vk5nb040cedb142478b97ecd835bj29ck3bm",
"address": "0x93j5c5cdd03b3cbb5ade6be69e0e9c730c1dkf92s",
"name": "SomeNFT",
"symbol": "SOMNFT",
"blockchain": "ethereum",
"logo_uri": "https://logo_metadata.com",
"image_url": "https://contract_image.jpg"
}
]
}
Request: Get all non-fungible assets of a single collection:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/nft-collections/mkvk5nb040cedb142478b97ecd835bj29ck310/assets',
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/nft-collections/mkvk5nb040cedb142478b97ecd835bj29ck310/assets"
headers = {
"accept": "application/json",
"content-type": "application/json"
"Bearer": "API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response:
{
"count": 1,
"next": null,
"previous": null,
"data": [
{
"id": "k048la1087c2a47189bd850c6cc01qoj9",
"token_id": 3287,
"name": "SomeNFT",
"token_standard": "erc721",
"owner": "0x92kvl04c805329895fc465772f47014908b94jh2",
"image": "https://non_fungible_asset_image.jpg",
"attributes": [
{
"trait_type": "head",
"value": "headset black"
},
{
"trait_type": "mouth",
"value": "standard mouth"
},
{
"trait_type": "extra",
"value": "none"
},
{
"trait_type": "outfit",
"value": "swimsuit purple"
},
{
"trait_type": "naked_body",
"value": "yellow "
},
{
"trait_type": "background",
"value": "classic dark"
},
{
"trait_type": "eyes",
"value": "open eyes"
},
{
"trait_type": "shoes",
"value": "black shoes"
},
{
"trait_type": "type",
"value": "standard"
}
],
"marketplaces": {
"x2y2": {
"url": "https://x2y2.io/eth/0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc/3287",
"image": "https://etherscan.io/images/dex/x2y2.svg"
},
"opensea": {
"url": "https://opensea.io/assets/ethereum/0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc/3287",
"image": "https://etherscan.io/images/svg/brands/opensea.svg"
},
"rarible": {
"url": "https://rarible.com/token/0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc:3287?tab=overview",
"image": "https://etherscan.io/images/dex/rarible.png"
},
"looksrare": {
"url": "https://looksrare.org/collections/0x4j59gkdeae0fbdb0f099fb3bafbcc4cc3cf0812pksc/3287",
"image": "https://etherscan.io/images/svg/brands/looksrare-black.svg"
}
}
}
]
}
Updated 8 months ago