Create stream using Savoir API

+1 vote

I am trying to create stream using following code:

...... rpc parameters
api = Savoir(rpcuser, rpcpasswd, rpchost, rpcport, chainname)
txid = api.create('stream', 'certificates2', 'true')

I am receiving following error:

{u'id': 1, u'result': None, u'error': {u'message': u'Invalid open flag, should be boolean', u'code': -8}}

I have been able to run multiple multichain-cli commands using Savoir but experiencing issue with only this one.

 
 
 

 

asked Dec 18, 2017 by anonymous

1 Answer

+1 vote

We didn't write Savoir but as a guess you probably need to pass true as a Python boolean rather than a string, i.e.:

txid = api.create('stream', 'certificates2', True)
answered Dec 18, 2017 by MultiChain
...