SyncState()

Retrieve Sync Status of the give node (IP/PORT)

Before calling the function make sure you have the Connector object initialized.

Understanding Connector Object

Function Call

SyncState();

Return value of function: SyncStateResult

Example

Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.SyncStateResult Sync_Report = connect_.SyncState(424078, 0);
Console.WriteLine(Sync_Report);

Return value of function: SyncStateResult

Output of Example

Output is printed via ObjectDumper

{SyncStateResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success: "
  CurrRound: 1325136
  LastBlock: 1325135

Last updated