I am looking to build a protocol where my users can share data but only after they pay the transaction fee in native currency to have the data published in the stream.
Is below logic the right approach?
I am looking to use the API command sendwithdatafrom from-address to-address '{"asset_name":qty}' '{"for":"stream_name","key":"key_name","data":"data in hex"}'
The pre-req is obviously to create the stream (create stream stream_name false) and native currency (via param file changes) or native asset
I am only interested in the users paying the transaction fee in native currency to have their data included in the stream i.e. the output amount (i.e. qty in amount object) will be specified as 0 and hence the inputs = transaction fee + change back to specified "from-address"