Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Splice APIsScan APIsScan APIView on Canton Network Docs

POST /v0/round-totals

Scan API

POST /v0/round-totals

POST/v0/round-totals

Removed in 0.6.7. Historical definition from 0.6.6.

Deprecated. List Amulet statistics for up to 200 closed rounds.

Protocol Details

Inputs

Body

application/json
start_roundinteger (int64)required
end_roundinteger (int64)required

Outputs

200

application/json
entriesRoundTotals[]required

400

application/json
errorstringrequired

404

application/json
errorstringrequired

500

application/json
errorstringrequired

History

Removed in0.6.7

Last available in 0.6.6. Retained for historical reference.

Deprecated0.5.10
cURL
cURL
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_round": 123,
  "end_round": 123
}'
Python
Python
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "start_round": 123,
  "end_round": 123
}''')
response = requests.request(
    "POST", url, headers=headers, json=payload
)

print(response.text)
JavaScript
JavaScript
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "start_round": 123,
  "end_round": 123
}),
});

console.log(await response.text());
PHP
PHP
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "start_round": 123,
  "end_round": 123
}
JSON,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
echo $response;
Go
Go
package main

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

func main() {
  req, _ := http.NewRequest("POST", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals", bytes.NewBufferString(`{
  "start_round": 123,
  "end_round": 123
}`))
  req.Header.Set("Content-Type", "application/json")
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
Java
Java
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/round-totals"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "start_round": 123,
  "end_round": 123
}
"""))
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Ruby
Ruby
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/round-totals')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "start_round": 123,
  "end_round": 123
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
200application/json
200
{
  "entries": [
    {
      "closed_round": 123,
      "closed_round_effective_at": "2026-01-01T00:00:00Z",
      "app_rewards": "<string>",
      "validator_rewards": "<string>",
      "change_to_initial_amount_as_of_round_zero": "<string>",
      "change_to_holding_fees_rate": "<string>",
      "cumulative_app_rewards": "<string>",
      "cumulative_validator_rewards": "<string>",
      "cumulative_change_to_initial_amount_as_of_round_zero": "<string>",
      "cumulative_change_to_holding_fees_rate": "<string>",
      "total_amulet_balance": "<string>"
    }
  ]
}
400application/json
400
{
  "error": "<string>"
}
404application/json
404
{
  "error": "<string>"
}
500application/json
500
{
  "error": "<string>"
}