Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get stream block data by number

POSThttps://api.moralis-streams.com/streams/evm/:chainId/block/:blockNumber

Get webhook data returned on the block number with provided stream config.

PATH PARAMS
chainIdstringrequired
blockNumbernumberrequired
BODY PARAM
Request Bodyobjectrequired
streams config and block number
Responses
200Ok
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request POST \
--url 'https://api.moralis-streams.com/streams/evm/%3AchainId/block/%3AblockNumber' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '
{
"tag": "string",
"allAddresses": false,
"includeNativeTxs": false,
"includeContractLogs": false,
"includeInternalTxs": false,
"includeAllTxLogs": false,
"filterPossibleSpamAddresses": false,
"abi": "string",
"advancedOptions": "string"
}
'
Response Example
Empty