curl --request GET \
--url https://api.royalti.io/asset/{id}/stats \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {}
}Retrieve statistics for a specific asset.
curl --request GET \
--url https://api.royalti.io/asset/{id}/stats \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/asset/example-id/stats', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);