How can I find out what addresses my token has and how much is solid? I thought of creating an array with the addresses like this would go through, but this array can grow to infinity and cost me a big gas. My idea would be to get all the wallets that have my token with the amount of it.

1 Answer 1


One approach could be through events:

  1. You can emit an event whenever there is a transfer from/to your token smart contract from/to an external account.
  2. Afterwards, you can retrieve all the related events off-chain without any cost

Any other alternative on-chain might have significant gas fees.


Your Answer

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

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