Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Struggling to publish textual data to a stream?
Why do I sometimes get a stream publish error ?
How can I publish mutliple data entries in my POE stream?
How do transactions work in a data stream ?
How do you publish to a stream with multiple publishers (without using the multisig functionality)?
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
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)
streams
multichain
asked
Apr 7, 2019
by
anonymous
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+3
votes
Hi,
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\"}"
Cheers
answered
Apr 8, 2019
by
chris
Please
log in
or
register
to add a comment.
...