API ReferenceStreamsUpdate streamVersion: 2.0Update streamPOSThttps://api.moralis-streams.com/streams/evm/:idUpdates a specific evm stream.PATH PARAMSidstringrequiredThe id of the stream to updateBODY PARAMwebhookUrlstringWebhook URL where moralis will send the POST request.descriptionstringA description for this streamtagstringA user-provided tag that will be send along the webhook, the user can use this tag to identify the specific stream if multiple streams are presenttopic0arrayAn Array of topic0's in string-signature format ex: ['FunctionName(address,uint256)']No items in the arrayAdd ItemallAddressesbooleanInclude events for all addresses (only applied when abi and topic0 is provided)falsetrueincludeNativeTxsbooleanInclude or not native transactions defaults to falsefalsetrueincludeContractLogsbooleanInclude or not logs of contract interactions defaults to falsefalsetrueincludeInternalTxsbooleanInclude or not include internal transactions defaults to falsefalsetrueincludeAllTxLogsbooleanInclude all logs if atleast one value in tx or log matches stream configfalsetruegetNativeBalancesobjectInclude native balances for each address in the webhookselectorsarrayNo items in the arrayAdd ItemtypestringabiobjectanonymousbooleanfalsetrueconstantbooleanfalsetrueinputsobjectnamestringtypestringindexedbooleanfalsetruecomponentsjsoninternalTypestringnamestringoutputsobjectnamestringtypestringcomponentsjsoninternalTypestringpayablebooleanfalsetruestateMutabilitystringtypestringgasnumberadvancedOptionsobjecttopic0stringfilterjsonThe filter object for the topic0 https://docs.moralis.io/docs/filter-streams[object Object]includeNativeTxsbooleanfalsetruechainIdsarrayThe ids of the chains for this stream in hex Ex: ["0x1","0x38"]No items in the arrayAdd ItemdemobooleanIndicator if it is a demo streamfalsetruetriggersobjecttriggerstypestringcontractAddressstringinputsarrayNo items in the arrayAdd ItemfunctionAbiobjectThe abi to parse the log object of the contractanonymousbooleanfalsetrueconstantbooleanfalsetrueinputsarrayNo items in the arrayAdd ItemnamestringoutputsarrayNo items in the arrayAdd ItempayablebooleanfalsetruestateMutabilitystringtypestringrequiredgasnumbertopic0stringcallFromstringResponses200 OkobjectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = Moralis.Streams.update({}); console.log(response.raw);} catch (e) { console.error(e);}from moralis import streamsapi_key = "YOUR_API_KEY"body = { "topic0": [], "abi": { "inputs": {}, "outputs": {} }, "triggers": { "inputs": [], "functionAbi": { "inputs": [], "outputs": [] } }, "get_native-balances": { "selectors": [] }, "advanced_options": { "filter": {} }, "chain_ids": []}params = {}result = streams.evm_streams.update_stream( api_key=api_key, body=body, params=params,)print(result)curl --request POST \ --url 'https://api.moralis-streams.com/streams/evm/%3Aid' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.moralis-streams.com/streams/evm/%3Aid" req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('POST', 'https://api.moralis-streams.com/streams/evm/%3Aid', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Ok{ "webhookUrl": "", "description": "", "tag": "", "topic0": [ "" ], "allAddresses": "", "includeNativeTxs": "", "includeContractLogs": "", "includeInternalTxs": "", "includeAllTxLogs": "", "getNativeBalances": { "selectors": [ "" ], "type": "" }, "abi": { "anonymous": "", "constant": "", "inputs": { "name": "", "type": "", "indexed": "", "components": "", "internalType": "" }, "name": "", "outputs": { "name": "", "type": "", "components": "", "internalType": "" }, "payable": "", "stateMutability": "", "type": "", "gas": "" }, "advancedOptions": { "topic0": "", "includeNativeTxs": "" }, "chainIds": [ "" ], "demo": "", "triggers": { "type": "", "contractAddress": "", "inputs": [ "" ], "functionAbi": { "anonymous": "", "constant": "", "inputs": [ "" ], "name": "", "outputs": [ "" ], "payable": "", "stateMutability": "", "type": "", "gas": "" }, "topic0": "", "callFrom": "" }, "id": "", "status": "", "statusMessage": ""}