> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GET /v0/internal/reward-accounting-process/rounds/:round_number/root-hash

> SV node internal API (CIP-0104, subject to change). Returns the root hash computed for the specified round.

SV node internal API (CIP-0104, subject to change). Returns the root hash computed for the specified round.

OpenAPI

[Added 0.6.0](#history-added-0-6-0)

[Updated 0.6.5](#history-updated-0-6-5)

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request GET \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash"
response = requests.request("GET", url)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash', {
  method: 'GET',
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash", nil)
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/internal/reward-accounting-process/rounds/{round_number}/root-hash')
request = Net::HTTP::Get.new(uri)
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "status": "<string>",
  "round_number": 123,
  "root_hash": "<string>"
}
```

## Path parameters

**round\_number** `number` *required*

OpenAPI type: `integer (int64)`.

## Responses

### 200

ok

application/json

**value** `GetRewardAccountingRootHashResponse` *required*

**child attributes**

**RewardAccountingRootHashOk** `RewardAccountingRootHashOk`

**child attributes**

**status** `string` *required*

**round\_number** `integer (int64)` *required*

**root\_hash** `string` *required*

Hex-encoded root hash

**RewardAccountingRootHashUndetermined** `RewardAccountingRootHashUndetermined`

**child attributes**

**status** `string` *required*

**RewardAccountingRootHashCannotProvide** `RewardAccountingRootHashCannotProvide`

**child attributes**

**status** `string` *required*

## History

Updated
`0.6.5`

The operation moved from GET /v0/reward-accounting-process/rounds/\{round\_number}/root-hash to GET /v0/internal/reward-accounting-process/rounds/\{round\_number}/root-hash.

Added
`0.6.0`
