API ReferenceStreamsCreate streamVersion: 2.2Create streamPUThttps://api.moralis-streams.com/streams/evmCreates a new evm stream.BODY PARAMwebhookUrlstringrequiredWebhook URL where moralis will send the POST request.descriptionstringrequiredA description for this streamtagstringrequiredA 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{}includeNativeTxsbooleanfalsetruechainIdsarrayrequiredThe 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.createStream({}); 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": []}result = streams.evm_streams.create_stream( api_key=api_key, body=body,)print(result)curl --request PUT \ --url 'https://api.moralis-streams.com/streams/evm' \ --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" req, _ := http.NewRequest("PUT", 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('PUT', 'https://api.moralis-streams.com/streams/evm', [ '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": ""}