Is there a auto increment way for unique asset names?

+2 votes
I'm issuing assets, which are linked to other assets.

I'm trying to find a good way to use some kind of id number as asset name for the top level assets

Is there a recommended way of doing this? I tried using the listwallettransactions, but that number is rising very fast and I think this is not useful for when the app moves to more nodes.
asked May 19, 2017 by anonymous

1 Answer

0 votes
MultiChain automaticallly assigns two types of unique ID to assets that are created - the asset reference and issuance txid. Either of these can be used in place of the asset name when referring to it in the APIs. While asset names generally need to be unique, you can have as many assets as you like with the empty name, so if you're just looking for some kind of unique ID, you should give the assets an empty name and rely on these auto-generated IDs.
answered May 19, 2017 by MultiChain