Skip to main content
Version: 2.0

Update stream status

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

Updates the status of specific evm stream.

PATH PARAMS
idstringrequired
The id of the stream to update
BODY PARAM
statusstringrequired

The stream status: [active] The Stream is healthy and processing blocks [paused] The Stream is paused and is not processing blocks [error] The Stream has encountered an error and is not processing blocks

Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = Moralis.Streams.updateStatus({});

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": ""
}