List all Collections
Example
curl "https://api.underdogprotocol.com/v1/collections?limit=1&page=1" \
-H "Authorization: Bearer {token}"
import axios from 'axios';
const getCollections = () => {
try {
const response = await axios.get('https://api.underdogprotocol.com/v1/collections', {
params: {
limit: 1,
page: 1
},
headers: {
'Authorization': `Bearer ${token}`
}
});
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Response
{
"results":[{
"mintAddress":"FrvZAJ1qZ2vhV17nFdEmw66N3FW5QiHFt6HdqsEh8QNq",
"name":"NBA",
"description":"",
"image":"https://arweave.net/57PrJ_-S-m2BXOSkaUN2t5ibsjbSrCjElSVUQXXyCq0",
"attributes":[],
"uri":"https://arweave.net/DnftYIM2sNZQBXm7qzRiFoUP0S7QtN4q_GkmIcv1UJ8",
"collectionDetails":{},
"ownerAddress":"EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDp"
}],
"page": 1,
"limit": 1,
"totalPages": 2,
"totalResults": 2
}
Last updated