v1

latestOpenAPI 3.0.02026-07-26356764.0 KB
EVM Streams

Create stream

Creates a new evm stream.

put/streams/evm

Request body

webhookUrlstring required

Webhook URL where moralis will send the POST request.

descriptionstring required

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

topic0string[] nullable

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

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

{"stackTrail":"components:schemas:StreamsModelCreate:properties:abi","oasType":"schema","type":"unknown","nullable":true}
{"stackTrail":"components:schemas:StreamsModelCreate:properties:advancedOptions","oasType":"schema","type":"unknown","nullable":true}
chainIdsstring[] required

The ids of the chains for this stream in hex Ex: ["0x1","0x38"]

filterPossibleSpamAddressesboolean

Indicator if it is a demo stream

demoboolean

Filter possible spam addresses

Example request

{
  "triggers": [
    {
      "functionAbi": {}
    }
  ]
}

Response

Ok

webhookUrlstring required

Webhook URL where moralis will send the POST request.

descriptionstring required

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

topic0string[] nullable

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

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

{"stackTrail":"components:schemas:StreamsModel:properties:abi","oasType":"schema","type":"unknown","nullable":true}
{"stackTrail":"components:schemas:StreamsModel:properties:advancedOptions","oasType":"schema","type":"unknown","nullable":true}
chainIdsstring[] required

The ids of the chains for this stream in hex Ex: ["0x1","0x38"]

filterPossibleSpamAddressesboolean

Indicator if it is a demo stream

demoboolean

Filter possible spam addresses

idstring uuid required

Stringified UUIDv4. See RFC 4112

status'active' | 'paused' | 'error' | 'terminated' required

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

statusMessagestring required

Description of current status of stream.

updatedAtstring date-time required

Last Updated Date.

amountOfAddressesnumber double required

Amount of Addresses.

Example response

{
  "triggers": [
    {
      "functionAbi": {}
    }
  ]
}