get asset metadata of an address

+1 vote

I'd like to know if there is a API to get the metadata of an asset which owned by a specific address. I know about the listassets with verbose=true and getaddresstransaction for getting metadata of issued assets but I'd like to retrieve metadata specific to an owner. I know that assets are fungible.

I try to use Multichain concepts to create a logic where I can store and retrieve origin and current owner of an asset. Could you tell me if there is a way.  

My second question is regarding getting the issuer of an asset which is owned by a specific address. Just imagine that the same asset has been issued by different addresses. I like to know who issued my asset which I currently own.

Thank you!    

       

asked Nov 28 by NIMA

1 Answer

+1 vote

I'm not sure I understand the question, but two things that may help are (1) you can subscribe to an asset and then use listassettransactions to obtain the most recent transactions for that asset, (2) because assets are fungible, MultiChain does not track the particular issuer of a particular unit of an asset, if that asset has undergone multiple issuances.

In MultiChain 2.0 (alphas) you could use inline metadata and transaction filters to propagate this information from the asset issuance to subsequent transactions, but this would require more complex transaction building logic, and you'd also have to consider what to do if two quantities of the asset with different metadata are mixed together in a transaction.

Is there any reason why you can't just use a different assets for each origin you want to track?

answered Nov 29 by MultiChain
thank you for your explanation! After analyzing I came to conclusion that I should use different assets based on their origin. This way I can have a view of the origin and the owner at once.
...