Getting all wallet holders of a token on BSC

Hello,

We’re trying to find a query for BSC that will give us all the wallet addresses who have ever held a token, is this possible? Was told to post the question here.

Thanks

We don’t have token holder api for now. But here is how you can calculate holders info.

First get all the transfers of that token and then check balance of those tokens to get the holders info.

Following is an example of getting the transfers of a token.

{
  ethereum(network: bsc) {
    transfers(options: {desc: "block.timestamp.time", limit: 10, offset: 0}, date: {since: "2021-05-25", till: null}, amount: {gt: 0}, currency: {is: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"}) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      transaction {
        hash
      }
      amount
      currency {
        symbol
      }
      external
    }
  }
}

So many request APIs, but none of them is able to get such a basic information as holders number.

You cant get total receivers and senders if you want check here