send/ receive vs write permissions on stream

+1 vote

Hi,

I am Blockchain and MultiChain newbie.

As stated in Getting started guide (https://www.multichain.com/getting-started/)

for node n2 to write to stream1 created by node n1 

On n1 we need to run :

grant 1... receive,send
grant 1... stream1.write

 

I am not interested in currency kind of asset transaction , only interested in data storage. So if I provide only stream write access it fails with 

alertchain-core: publish stream1 key1 736f6d65206f746865722064617461

{"method":"publish","params":["stream1","key1","736f6d65206f746865722064617461"],"id":1,"chain_name":"alertchain-core"}

 

error code: -704

error message:

This wallet contains no addresses with permission to write to this stream and global send permission.

 

Why do we need to provide send/ receive permission along with write permission?

Regards,

AKM

asked Feb 19, 2018 by AKM

1 Answer

0 votes

This is because global send permissions are required in order to be allowed to sign any kind of transaction on the blockchain, and stream items are embedded within a blockchain transaction.

answered Feb 19, 2018 by MultiChain
...