Hi,
I am trying to create streamfilter on alpha6 with command:
create streamfilter streamfilter1 '{"for":"stream1"}' 'function filterstreamitem(){ var item=getfilterstreamitem(); if (item.keys.length < 2) return "2 keys required"; }'
and receive the following error:
error code: -8
error message: for field is allowed only for tx filters
May I know how do I create streamfilter with restrictions?