# SyncState()

Before calling the function make sure you have the Connector object initialized.&#x20;

{% content-ref url="../../getting-started/understanding-connector-object" %}
[understanding-connector-object](https://centr.gitbook.io/netcs/getting-started/understanding-connector-object)
{% endcontent-ref %}

## Function Call&#x20;

```csharp
SyncState();
```

{% hint style="info" %}
Return value of function: [SyncStateResult](https://centr.gitbook.io/netcs/api/result-types/syncstateresult)
{% endhint %}

## Example

{% tabs %}
{% tab title="C#" %}

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

{% endtab %}

{% tab title="Python" %}

```python
Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.SyncState())
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
var connect_ = new Connector("194.163.152.177", 9091);
connect_.SyncState().then((res) => {connect_.Close();console.log(res); });
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Return value of function: [SyncStateResult](https://centr.gitbook.io/netcs/api/result-types/syncstateresult)
{% endhint %}

#### Output of Example

Output is printed via ObjectDumper

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