I'm wanting to display the NFT count of a wallet on my website. I've gone through the blockfrost SDK and I don't see anything that relates to NFTs. Is there a method to return this value?
Here is my code which currently returns the ADA amount:
const Http = new XMLHttpRequest();
const url = 'https://cardano-mainnet.blockfrost.io/api/v0/accounts/stake1u9r0sh6hl6csxt90k5ueh5pl404r6qs995kjnzmp8u3mr2csgg2q8';
Http.open("GET", url);
Http.setRequestHeader('project_id', 'mainnetxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
Http.send();
Http.onreadystatechange = (e) => {
if (e.currentTarget.readyState == 4 && e.currentTarget.status == 200 && e.currentTarget.responseText != '') {
var stake = (parseFloat(JSON.parse(Http.responseText).controlled_amount) / 1000000);
console.log(stake)
}
}
Thanks for any help!