Skip to main content

syncing

Returns an object with data about the sync status or false.

Parameters

>_ no params required

Returns

Object|Boolean

An object with sync status data or FALSE, when not syncing:

startingBlock : QUANTITY

The block at which the import started (will only be reset, after the sync reached his head)

currentBlock: QUANTITY

The current block, same as jumbo_blockNumber

highestBlock: QUANTITY

The estimated highest block

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_syncing",\n\t"params":[],\n\t"id":1\n}',
null,
"application/json"
);
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());