# Latest State Root

## **ENDPOINT**

```
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/latest/stateRoot
```

### **Arguments**

None

### **Response**

| Parameter | type   | Description           |
| --------- | ------ | --------------------- |
| result    | string | The latest state root |

### Request

{% tabs %}
{% tab title="REST" %}

```bash
curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/latest/stateRoot
```

{% endtab %}

{% tab title="JSON-RPC" %}

<pre class="language-bash"><code class="lang-bash"><strong>curl https://api.data123.io/aleo/&#x3C;API KEY>/rpc/v1/testnet3 \
</strong>    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"getLatestStateRoot","params":[],"id":1}'
</code></pre>

{% endtab %}
{% endtabs %}
