Closed Satosh-J closed 2 years ago
Hey Satosh-J, currently there's no way within XLS-20 to determine the owner from the NFTokenID directly.
One way that's being resolved is with Clio (a companion to validators that can offer additional requests) - See this comment in response to a similar question on the spec itself: https://github.com/XRPLF/XRPL-Standards/discussions/46#discussioncomment-2548482
Alternatively, you can use the NFTokenID to get the issuer of the token, then trace back the transactions which involve that token until you find the eventual owner.
The steps for that would be:
parse_nftoken_id
in xrpl-py or parseNFTokenID
in xrpl.js)account_tx
request for that issuer until you find the transaction that trades the NFToken (https://xrpl.org/account_tx.html)The Clio option will eventually be a very easy-to-use answer to this question, but unfortunately for now it's not quite ready.
Thanks you very much.
Hello. I'm making buy offer in xrp20d. This requires txBlob like this.
For this, I should know the current owner of NFToken. How can I get owner account address from NFTokenID? Or is there any other way to make buy offer without knowing owner?