I'm getting some errors using the Update Stream API

Parameters when i use update stream api:

curl --request POST \
     --url 'https://api.moralis-streams.com/streams/evm/test_stream_id' \
     --header 'accept: application/json' \
     --header 'X-API-Key: YOUR_API_KEY' \
     --header 'content-type: application/json' \
     --data '
{
  "topic0": [
    "Transfer(address,address,uint256)"
  ],
  "advancedOptions": {
    "topic0": "Transfer(address,address,uint256)",
    "filter": {
      "or": [
        {
          "and": [
            {
              "eq": [
                "from",
                "0xba8e6302eb699282233b305a7cee5b1a343a85cd"
              ]
            },
            {
              "gte": [
                "value",
                "100000"
              ]
            }
          ]
        }
      ]
    }
  }
}
'

And i get some error:

{
  "message": "Invalid filter check: https://v1docs.moralis.io/moralis-dapp/automatic-transaction-sync/smart-contract-events#event-filters"
}

I can set the filter through dashbord, and it has passed the test. This is the abi in my stream:

I donโ€™t know whatโ€™s wrong with the format of the filter.
Thanks for your help!

does it work to update the stream in the admin interface?

yes, Iโ€™m ok in admin interface

you can check in the network tab in admin interface to see what request is made to Streams API and this way you could find the right format for that filter?

ok, Iโ€™m going to try it out

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.