Tracing back to see from which node the asset came from

+1 vote
Considering a scenario where Blockchain has 4 nodes in a hierarchy (node1, node2, node3, node4). Asset1 is transfered to node 2 from node1 and then from node2 to node3, and so on. If node4 wants to know which node created asset1, is there a predefined API to do that?

For tracing back I am planning to create a stream for asset1 (separate streem for each asset) and add each transaction details into the stream and trace it back to the node1. If there are any other efficient way please let me know, it will help a lot.

Regards,

Amit
asked May 31, 2017 by amitsh

1 Answer

0 votes

You can use the API command listassets with verbose=true to see the issuer of each asset.

answered May 31, 2017 by MultiChain
I want trace it back like how the asset came to node4 from node1.
Eg:
From node1 -> node2 -> node3 -> node4.
Here I want to link the path of nodes which are involved in the path of asset transfer from node1 to node4.
If you subscribe to an asset on a node, you can use listassettransactions to see the full history of transactions involving that asset, and how it moved.
...