← Robinhood Chain overview

Robinhood Chain · eth

eth_newBlockFilter

Creates a filter in the node, allowing for later polling. Registers client interest in new blocks, and returns an identifier.

cURL

Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .

Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_newBlockFilter","params":[]}'

Example request

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_newBlockFilter",
  "params": []
}

Result

Filter identifier

Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x01"
}
Schema
{
  "type": "string",
  "title": "hex encoded unsigned integer",
  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}