2

For an FA2 nft contract, how can I get the address of the owner of token_id 0 from inside another contract?

1 Answer 1

2

The specification does not enforce an implementation for this. You can only verify if a given address owns the token by calling balance_of callback view. In the case of an NFT, balance 1 would mean that a given address owns that token and a balance of 0 that the address does not own it.

Check this thread for an example on how to do that.

Your Answer

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

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