How to add a comment when granting permission to address?

+1 vote
Can you give me an example of this, i've tried with

[sekula@bchain1 ~]$ multichain-cli TEST grant 1Pzfo6yvFBRZtr54EBAxFjY8FMVFwz26hSpCv8 connect ["MILE"]

[sekula@bchain1 ~]$ multichain-cli TEST grant 1Pzfo6yvFBRZtr54EBAxFjY8FMVFwz26hSpCv8 connect "MILE"

But i get "Error parsing JSON" response.

Can we see these comments inside decoded transaction after we've granted permission?

If not, is there any way to add metadata to permission or address creation. The point of all this is to append some human readable message along with address so we can use it as an address identifier. From what i see, we can also use ''appendrawmetadata", but if i understood properly, we can only add it to previously created raw transaction? Sorry for multiple questions on this one, and thank you for help.
asked May 26, 2016 by Mile
edited May 26, 2016 by Mile

1 Answer

+1 vote

Currently there is no high-level API for this, although it's a common request and I expect we'll add an API for it in future. In the meantime you should use the raw transactions interface described here:

http://www.multichain.com/developers/raw-transactions/

Look at the section entitled "Managing Permissions" and add an appendrawmetadata step after the createrawtransaction call.

answered May 27, 2016 by MultiChain
...