hey, I am implementing erc721 token, can somebody explain me how to get the tokens that a belongs to an address? I am using open zeppelling

Jul 17, 2018, 4:06 AM
Use a mapping for addresses and their balance
Then simply call a getter for the desired address
Jul 17, 2018, 4:52 AM
Depends if you're using a smart contract or off-chain program. If using a smart contract use an interface to define the functions you want to call
if you are using off-chain, providing the function or state variables are marked as public you can call those directly
if they are private, you could inspect storage slots
i believe IDEX is currently working on a solution but im not 100% sure
Jul 17, 2018, 7:05 AM

© 2024 Draquery.com All rights reserved.