Dear Multichain Team,
I'm using JSON-RPC API command "liststreams(`stream-name`)" to check if a stream with a specific name exists. If the stream exists I get an error (it is expected of course):
Error! Status code: 500
Text: {"result":null,"error":{"code":-708,"message":"Stream with this name not found: stream-name"},"id":1}
Json: {'result': None, 'error': {'code': -708, 'message': 'Stream with this name not found: stream-name'}, 'id': 1}
Is it possible to catch the above error? I was thinking to check whether the stream exists, if not create it and then publish an object, or else publish directly.
Many thanks!