1

I'd like to determine the number of wallet holders for (example)

  1. Lobster holders
  2. ClayNation owners

How can I query this with a full node?

1 Answer 1

5

You 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
  }
]
1
  • Thanks a lot, didn't know about koios. Feb 16, 2022 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.