Timeline for ERC721 - getting the list of all token owners (all addresses)
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 10, 2022 at 0:28 | comment | added | William Entriken |
You do not need to loop. The thread question is to get a random one. So just token.ownerOf(token.tokenByIndex(RANDOM % token.totalSupply()))
|
|
Feb 8, 2022 at 10:12 | comment | added | Dell Watson | ERC721Enumerable is not great idea, not only cost gas fee in creation and it doesn't solve the thread issue, you need to loop and call them one by one which is not great | |
Jan 7, 2022 at 20:36 | history | answered | William Entriken | CC BY-SA 4.0 |