Token Holders – How to Find All Token Holders in Solidity

addressescontract-designsoliditytokens

For example, the contract saves the address when token created but after that token holder could send token or all tokens to another wallet.

Is it possible to find all wallet addresses of token holders which were created by my contract?

Best Answer

All token transfers are performed by calling methods on your contract - so your contract can track balances and accounts in any way it wishes. If you're using the default arrangement of using a Solidity mapping, you will also need to keep a separate list of known account IDs in an array, so you can iterate over them.

Related Topic