Modify Asset custom fields

+3 votes

Hi, I created an asset like the following   multichain-cli chainname issue address assetname 100 1 0 '{"field1":"1"}' , and sent to the other node in my chain, now my question, can i add one more field in the custom field  of the asset, is it possible to change the value of field1 

asked Dec 22, 2016 by Rajeev

1 Answer

+2 votes
Best answer

If you want the custom fields of an asset to be updatable, you have a couple of options:

  • Use a stream for information about the asset. For example you could create a convention on your chain where an asset named asset1 would have its metadata in a stream named asset1_metadata.
  • Issue the asset with "open":true (see API docs), in which case you can use the issuemore command to perform a reissuance of that asset, with new custom fields, even if no new units of the asset are being created. Calling listassets with verbose=true displays the full history of all issuances of that asset, including their custom fields.
answered Dec 22, 2016 by MultiChain
selected Dec 30, 2016 by Rajeev
Hi Thanks for the reply, Once after sending the asset to node2 using atomic exchange procedure, now some part of created asset will be in node2. Can i issuemore asset from the node2 ? is it possible to do please let me know.
Thank you.
If you grant issue permission for this asset to an address on node 2, then yes.