[SOLVED] Streams throwing error 'At least one of includeContractLogs, includeNativeTxs, includeInternalTxs must be true'

import Moralis from ‘moralis’;

Moralis.start({
apiKey: ‘YOUR_API_KEY’,
});

const stream = {
address: ‘0x68b3f12d6e8d85a8d3dbbc15bba9dc5103b888a4’ // address to monitor
chains: [EvmChain.ETHEREUM, EvmChain.POLYGON] // list of blockchains to monitor
description: ‘monitor Bobs wallet’, // your description
network: ‘evm’,
tag: ‘bob’, // give it a tag
type: ‘wallet’ // can be wallet or contract,
webhookUrl: ‘https://YOUR_WEBHOOK_URL’ // webhook url to receive events,
}

const newStream = await Moralis.Streams.add(stream);
newStream.toJSON() // { id: ‘YOUR_STREAM_ID’, …newStream }

using above code and getting

data: {
message: ‘At least one of includeContractLogs, includeNativeTxs, includeInternalTxs must be true’
}

you can test it also directly in the swagger interface

https://api.moralis-streams.com/api-docs/

it looks like you have to provide more parameters

thanks bro, yeah require one of those in json and require one of those to be true