Skip to main content

newBlockFilter

Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call jumbo_getFilterChanges.

Parameters

>_ no params required

Returns

QUANTITY

A filter id.

Requests

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://testnode.jumbochain.org");
var content = new StringContent("{\n\t\"jsonrpc\":\"2.0\",\n\t\"method\":\"jumbo_newBlockFilter\",\n\t\"params\":[],\n\t\"id\":73\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());