Case by case stream write permission

+1 vote
Hi,

I am working on a use case that requires write permission to a stream to be granted on a case by case basis but automatically. The idea is to grant an address write permission to a particular stream when a transaction is received from that address.

How can I do this?

Thanks.

R.
asked Mar 14, 2017 by Rosevelt

1 Answer

0 votes

You would need to do this at the application level on one of the nodes, creating a notification script (see the walletnotify runtime parameter) that detects the incoming transaction, then assigns the write permission in response. You can't currently configure the blockchain to make this connection automatically.

answered Mar 15, 2017 by MultiChain
Thanks. Is there a guide on or example of using the walletnotify parameter? Also do you plan to support it in the setruntimeparam api?
The walletnotify parameter is documented here:
http://www.multichain.com/developers/runtime-parameters/

We're not so likely to allow this to be modified via setruntimeparam, because of the potential security implications of giving someone with access to the JSON-RPC API control over running arbitrary programs on the server running MultiChain.
...