Skip to main content

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)']
allAddressesboolean
Include events for all addresses (only applied when abi and topic0 is provided)
includeNativeTxsboolean
Include or not native transactions defaults to false (only applied when type:contract)
includeContractLogsboolean
Include or not logs of contract interactions defaults to false
includeInternalTxsboolean
Include or not include internal transactions defaults to false
getNativeBalancesobject
Include native balances for each address in the webhook
selectorsarray
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"]
demoboolean
Indicator if it is a demo stream
triggersobject
triggers
typestring
contractAddressstring
inputsarray
functionAbiobject
The abi to parse the log object of the contract
anonymousboolean
constantboolean
inputsarray
namestring
outputsarray
payableboolean
stateMutabilitystring
typestringrequired
gasnumber
topic0string
callFromstring
Responses
API KEY
import Moralis from "moralis";

try {
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const id = "id-1";

const { result } = await Moralis.Streams.getById({
id,
});

console.log(result);
} catch (e) {
console.error(e);
}
Response Example
{
"triggers": {
"inputs": [
""
]
}
}