I'm super new to cardano blockchain development. Today, I just have a chance to explore on blockfrost api. I've been trying to find an answer of the question that
- Is there any public APIs out there that can make me get all addresses holding cnfts from a single project under the same policy id ? For example, the below image is a captured screenshot from www.opencnft.io, it shows all wallet holders distribution.
- Right now I only see these two available APIs from blockfrost
https://cardano-mainnet.blockfrost.io/api/v0/assets/policy/{policy_id}
https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}/addresses
The problem right now is that the second api, {asset} is like a concatenation of the policy_id and hex-encoded asset_name mixed together, which asset_name in cnft asset will be a unique asset id and their asset ids all vary from each other under the same policy. Meaning that I need to call this API n times by having each request vary on asset_name (given n are total nfts of a project)
Appreciate any helps :)