Skip to main content
Version: 2.2

Update stream

POSThttps://api.moralis-streams.com/streams/evm/:id

Updates a specific evm stream.

PATH PARAMS
idstringrequired
The id of the stream to update
BODY PARAM
webhookUrlstring
Webhook URL where moralis will send the POST request.
descriptionstring
A description for this stream
tagstring
A 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 present
topic0array
An Array of topic0's in string-signature format ex: ['FunctionName(address,uint256)']
No items in the array
allAddressesboolean
Include events for all addresses (only applied when abi and topic0 is provided)
includeNativeTxsboolean
Include or not native transactions defaults to false
includeContractLogsboolean
Include or not logs of contract interactions defaults to false
includeInternalTxsboolean
Include or not include internal transactions defaults to false
includeAllTxLogsboolean
Include all logs if atleast one value in tx or log matches stream config
getNativeBalancesobject
Include native balances for each address in the webhook
selectorsarray
No items in the array
typestring
abiobject
anonymousboolean
constantboolean
inputsobject
namestring
typestring
indexedboolean
componentsjson
internalTypestring
namestring
outputsobject
namestring
typestring
componentsjson
internalTypestring
payableboolean
stateMutabilitystring
typestring
gasnumber
advancedOptionsobject
topic0string
filterjson

The filter object for the topic0 https://docs.moralis.io/docs/filter-streams

includeNativeTxsboolean
chainIdsarray
The ids of the chains for this stream in hex Ex: ["0x1","0x38"]
No items in the array
demoboolean
Indicator if it is a demo stream
triggersobject
triggers
typestring
contractAddressstring
inputsarray
No items in the array
functionAbiobject
The abi to parse the log object of the contract
anonymousboolean
constantboolean
inputsarray
No items in the array
namestring
outputsarray
No items in the array
payableboolean
stateMutabilitystring
typestringrequired
gasnumber
topic0string
callFromstring
Responses
API KEY
import 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);
}
Response Example
{
"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": ""
}