How do I publish textual data on a stream?

+3 votes
I am using

multichain-cli [chainname] publish stream1 [key1] {"text":"hello world"}

(with appropriate chainname and key)

However, it returns

error code: -8
error message:
data should be hexadecimal string or recognized object

(I am using cmd to preform this)
asked Apr 7, 2019 by anonymous

1 Answer

+3 votes

when using Windows you must escape the Json structure correctly, as described in the readme.txt, e.g.

multichain-cli.exe chain1 publish stream1 "key1" "{\"text\":\"hello world\"}"

answered Apr 8, 2019 by chris