I'd like to determine the number of wallet holders for (example)
- Lobster holders
- ClayNation owners
How can I query this with a full node?
Cardano Stack Exchange is a question and answer site for users and developers of the Cardano cryptocurrency ecosystem. It only takes a minute to sign up.
Sign up to join this communityYou would need db-sync to get that sort of data. https://github.com/input-output-hk/cardano-db-sync
You can use existing solutions like Koios (https://api.koios.rest/#overview).
Example for Lobster token:
curl -X GET "https://api.koios.rest/api/v0/asset_txs?_asset_policy=8654e8b350e298c80d2451beb5ed80fc9eee9f38ce6b039fb8706bc3&_asset_name=4c4f4253544552"
Response:
[
{
"policy_id": "8654e8b350e298c80d2451beb5ed80fc9eee9f38ce6b039fb8706bc3",
"asset_name": "4c4f4253544552",
"total_transactions": 340660,
"staked_wallets": 2433,
"unstaked_addresses": 9
}
]