⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

eth_newBlockFilter

Creates a filter in the node, to notify when a new block arrives on the Chiliz network.

Parameters

None (this method takes no parameters)

Returns

Returns a filter ID as a hexadecimal string. This ID can be used with eth_getFilterChanges to retrieve new block hashes since the last poll.

Implementation Example

Examples

curl -X POST https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": 1
}'

Response Example

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x16"
}

Notes

  • The returned filter ID is used with eth_getFilterChanges to poll for new blocks
  • Filters automatically expire after a period of inactivity (typically 5 minutes)
  • Use eth_uninstallFilter to manually remove the filter when no longer needed
  • Each call to eth_getFilterChanges returns only block hashes added since the last poll

Need help? Contact our support team or check the Chiliz documentation.