# Scanから消えたroundの集計

> Scan APIでroundごとの集計と報酬の順位を返した10のエンドポイントが、いつ非推奨になり、いつ削除され、何を返していたかを、版の番号で追います。

- URL: https://cardene.dev/diagrams/canton-scan-retired-round-stats
- 公開日: 2026-11-24
- 更新日: 2026-11-24
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Scanの古いエンドポイント](https://cardene.dev/diagrams/canton-scan-legacy-endpoints.md): Scan APIで非推奨になって削除されたエンドポイントと、まだ試験中のbulkの読み出しを、版の番号と非推奨の説明が案内した移行先と一緒に、章の中の図解で追います。

この頁は、Scan APIでroundごとの集計と報酬の順位を返した10のエンドポイントの、非推奨と削除の履歴を、版の番号で追います。
0.6.6で4つ、0.6.7で5つが削除され、残る1つには版0.5.10の非推奨が記録されています。
Scanは、DSOのpartyから参照できるデータを返します。
Scanの範囲と今の呼び方は、章「Scanが返すネットワークの状態」で見ました。

https://cardene.dev/diagrams/canton-scan-network-view

roundの仕組みは、頁「mining roundと報酬の発行」で見ました。

https://cardene.dev/diagrams/canton-reward-issuance

エンドポイントは、APIで呼び出せる個々の宛先です。
HTTPは、ブラウザやプログラムがWebのサーバーと要求と応答をやり取りする決まりです。
GETとPOSTは、HTTPの要求の種類です。
Amuletは、Canton Coin(CC)を、Damlのコントラクトの層で呼ぶ名前です。

## 10のエンドポイントの非推奨と削除の履歴

extra trafficは、Canton Coinで買うtrafficです。
validator faucetは、頁「報酬のAmuletの発行量を決める」で見た、validatorごとに出す引換券です。

https://cardene.dev/diagrams/canton-amulet-issuance

`AmuletRules`は、DSO partyが管理するAmuletの状態を、Amuletの利用者がどう変えてよいかを定める規則のtemplateで、頁「Canton Coinの設定を変える」で見ました。

https://cardene.dev/diagrams/canton-amulet-config

参照の頁は、10のエンドポイントのうち9つに、版0.5.10の非推奨の印を付けます。
削除された9つの頁は、最後にあった版の定義を、歴史の参照として残します。
次の表は、10のエンドポイントを、返していた物と、非推奨と削除の版で並べます。

| エンドポイント | 返していた物 | 非推奨 | 削除 | 最後にあった版 |
|---|---|---|---|---|
| `GET /v0/aggregated-rounds` | このScanが集計した、最も早いroundと最も遅いroundを、`start`と`end`で返した | 0.5.10 | 0.6.7 | 0.6.6 |
| `GET /v0/rewards-collected` | これまでに集めた報酬の総額を、`amount`で返した | 0.5.10 | 0.6.7 | 0.6.6 |
| `GET /v0/round-of-latest-data` | 集計したデータがある最新のroundの番号と、そのroundが閉じたledger effective timeを返した | 0.5.10 | 0.6.7 | 0.6.6 |
| `POST /v0/round-party-totals` | 閉じたroundの最大50個について、partyごとのAmuletの統計を返した | 0.5.10 | 0.6.7 | 0.6.6 |
| `POST /v0/round-totals` | 閉じたroundの最大200個について、Amuletの統計を返した | 0.5.10 | 0.6.7 | 0.6.6 |
| `GET /v0/top-providers-by-app-rewards` | アプリの報酬を多く得た提供者の一覧と、各々の報酬の総額を返した | 0.5.10 | 0.6.6 | 0.6.5 |
| `GET /v0/top-validators-by-purchased-traffic` | validatorごとのSynchronizerの手数料の支出を、買ったextra trafficの量の順で返した | 0.5.10 | 0.6.6 | 0.6.5 |
| `GET /v0/top-validators-by-validator-faucets` | validator faucetを受け取ったroundの数の多いvalidatorの一覧と、受け取りの履歴の基本の統計を返した | 記録なし | 0.6.6 | 0.6.5 |
| `GET /v0/top-validators-by-validator-rewards` | validatorの報酬を多く得たvalidatorの一覧と、各々の報酬の総額を返した | 0.5.10 | 0.6.6 | 0.6.5 |
| `GET /v0/amulet-config-for-round` | 選んだroundのAmuletRulesから、一部の情報を返す | 0.5.10 | 記録なし | 記録なし |

`/v0/top-validators-by-validator-faucets`は、非推奨の記録がないまま、版0.6.6で削除されました。
`/v0/amulet-config-for-round`は、版0.5.10の非推奨の記録があり、削除の記録がありません。
削除の記録がないことは、今も呼び出せることを示しません。

図Aは、10のエンドポイントを、削除された版の枝と、返していた物の葉で並べます。
段1は、根を置きます。
段2から段4は、版0.6.6で削除された4つを足し、段5から段7は、版0.6.7で削除された5つを足します。
段8は、削除の記録がない1つを足します。

```dragon
mind 削除された版ごとの集計のエンドポイント

step 10のエンドポイント
  say roundの集計を返した10のエンドポイントがあります。
  idea root as "10のエンドポイント" [color: slate]
  source CantonのScan APIのGET /v0/aggregated-rounds [url: https://docs.canton.network/reference/splice-scan-api/get-v0aggregated-rounds]

step 版0.6.6の枝
  say 10のエンドポイントのうち、4つは版0.6.6で削除されました。
  idea b66 as "版0.6.6で削除の4つ" of root [color: blue]
  source CantonのScan APIのGET /v0/top-providers-by-app-rewards [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-providers-by-app-rewards]
  source CantonのScan APIのGET /v0/top-validators-by-purchased-traffic [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-purchased-traffic]

step アプリの報酬とtrafficの上位
  say 版0.6.6で削除された4つのうち、2つは、アプリの報酬と、買ったextra trafficの量で、上位の一覧を返しました。
  idea a1 as "アプリの報酬の上位の提供者" of b66 [color: blue]
  idea a2 as "extra trafficの購入量順のvalidatorの支出" of b66 [color: blue]
  source CantonのScan APIのGET /v0/top-providers-by-app-rewards [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-providers-by-app-rewards]
  source CantonのScan APIのGET /v0/top-validators-by-purchased-traffic [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-purchased-traffic]

step faucetとvalidatorの報酬の上位
  say 残る2つは、validator faucetを受け取ったroundの数と、validatorの報酬で、validatorの上位の一覧を返しました。
  idea a3 as "faucetを受け取ったroundの多いvalidator" of b66 [color: blue]
  idea a4 as "validatorの報酬の上位のvalidator" of b66 [color: blue]
  source CantonのScan APIのGET /v0/top-validators-by-validator-faucets [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-validator-faucets]
  source CantonのScan APIのGET /v0/top-validators-by-validator-rewards [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-validator-rewards]

step 版0.6.7の枝と集計したroundの範囲
  say 版0.6.7では、5つが削除されました。1つ目は、集計したroundの範囲を返しました。
  idea b67 as "版0.6.7で削除された5つ" of root [color: blue]
  idea c1 as "集計したroundの範囲" of b67 [color: blue]
  source CantonのScan APIのGET /v0/aggregated-rounds [url: https://docs.canton.network/reference/splice-scan-api/get-v0aggregated-rounds]

step 報酬の総額と最新のround
  say 2つ目と3つ目は、これまでの報酬の総額と、集計したデータがある最新のroundを返しました。
  idea c2 as "これまでの報酬の総額" of b67 [color: blue]
  idea c3 as "最新のroundの番号と時刻" of b67 [color: blue]
  source CantonのScan APIのGET /v0/rewards-collected [url: https://docs.canton.network/reference/splice-scan-api/get-v0rewards-collected]
  source CantonのScan APIのGET /v0/round-of-latest-data [url: https://docs.canton.network/reference/splice-scan-api/get-v0round-of-latest-data]

step partyごととroundごとの統計
  say 4つ目と5つ目は、閉じたroundのAmuletの統計を、partyごとと、roundごとに返しました。
  idea c4 as "partyごとのroundの統計" of b67 [color: blue]
  idea c5 as "roundごとの統計" of b67 [color: blue]
  source CantonのScan APIのPOST /v0/round-party-totals [url: https://docs.canton.network/reference/splice-scan-api/post-v0round-party-totals]
  source CantonのScan APIのPOST /v0/round-totals [url: https://docs.canton.network/reference/splice-scan-api/post-v0round-totals]

step 削除の記録がない1つ
  say 残る1つは、選んだroundの料金と料率を返し、版0.5.10の非推奨の記録があり、削除の記録がありません。
  idea b0 as "削除の記録がない1つ" of root [color: blue]
  idea d1 as "roundの料金と料率" of b0 [color: blue]
  source CantonのScan APIのGET /v0/amulet-config-for-round [url: https://docs.canton.network/reference/splice-scan-api/get-v0amulet-config-for-round]
```

## 上位の一覧を返した4つは版0.6.6で削除された

4つとも、HTTPのGETで呼び、失敗した時は、400と404の両方の応答で、必須の欄`error`を持つJSONを返しました。

:::details JSON
JSONは、データを文字で表すための形式で、Webのプログラムどうしのデータのやり取りに広く使われています。
:::

`operation ID`は、資料が各エンドポイントの操作に付ける名前です。
クエリは、URLの末尾に付けて渡す引数です。
次の表は、4つの`operation ID`と、クエリと、応答の欄を並べます。

| エンドポイント | `operation ID` | クエリ | 応答の欄 |
|---|---|---|---|
| `/v0/top-providers-by-app-rewards` | `getTopProvidersByAppRewards` | int64型の`round`とint32型の`limit`が必須 | `providersAndRewards`。`PartyAndRewards`の配列で、各要素は`provider`と`rewards`を持つ |
| `/v0/top-validators-by-purchased-traffic` | `getTopValidatorsByPurchasedTraffic` | int64型の`round`とint32型の`limit`が必須 | `validatorsByPurchasedTraffic`。validatorごとの要素で、各要素は`validator`と`numPurchases`と`totalTrafficPurchased`と`totalCcSpent`と`lastPurchasedInRound`を持つ |
| `/v0/top-validators-by-validator-faucets` | `getTopValidatorsByValidatorFaucets` | int32型の`limit`が必須。`limit`は返すvalidatorの記録の上限 | `validatorsByReceivedFaucets`。faucetを受け取ったroundの多い順に`limit`件までで、各要素は`validator`と`numRoundsCollected`と`numRoundsMissed`と`firstCollectedInRound`と`lastCollectedInRound`を持つ |
| `/v0/top-validators-by-validator-rewards` | `getTopValidatorsByValidatorRewards` | int64型の`round`とint32型の`limit`が必須 | `validatorsAndRewards`。`PartyAndRewards`の配列で、各要素は`provider`と`rewards`を持つ |

## roundの範囲と統計を返した5つは版0.6.7で削除された

版0.6.7で削除された5つのうち、3つは、1つの値か1組の値を返しました。
`GET /v0/aggregated-rounds`の`operation ID`は`getAggregatedRounds`で、クエリを取りません。
`start`と`end`は、どちらもint64型の必須の欄で、404は、`error`の欄を持つJSONを返しました。

`GET /v0/rewards-collected`の`operation ID`は`getRewardsCollected`で、クエリのint64型の`round`を受け取りました。
応答は、文字列の`amount`で、404は、必須の`error`を返しました。
`GET /v0/round-of-latest-data`の`operation ID`は`getRoundOfLatestData`で、クエリを取りません。
応答は、int64型の`round`と、日時の`effectiveAt`を、どちらも必須で持ち、404は、必須の`error`を返しました。

`effectiveAt`は、そのroundが閉じたledger effective timeです。
ledger effective timeは、頁「partyのlocal ledgerと時刻」で見たledger timeに当たる時刻です。

https://cardene.dev/diagrams/canton-local-ledger-time

残る2つは、閉じたroundの範囲を、必須の`start_round`と`end_round`で受け取り、`entries`の配列で統計を返しました。
どちらの要求も、HTTPのPOSTで、本文にJSONを送り、400と404と500で、必須の`error`を返しました。

| エンドポイント | `operation ID` | 返したround | `entries`の各要素の欄 |
|---|---|---|---|
| `POST /v0/round-totals` | `listRoundTotals` | 最大200個 | `closed_round`と`closed_round_effective_at`と`app_rewards`と`validator_rewards`と`change_to_initial_amount_as_of_round_zero`と`change_to_holding_fees_rate`と、報酬、金額の初期値と保有料率の変化に関する累計の4つの欄と、`total_amulet_balance` |
| `POST /v0/round-party-totals` | `listRoundPartyTotals` | 最大50個 | `closed_round`と`party`と`app_rewards`と`validator_rewards`と`traffic_purchased`と`traffic_purchased_cc_spent`と`traffic_num_purchases`と、報酬、金額の初期値と保有料率の変化、trafficの購入に関する累計の7つの欄 |

`/v0/round-party-totals`の累計の7つの欄は、`cumulative_app_rewards`と`cumulative_validator_rewards`と`cumulative_change_to_initial_amount_as_of_round_zero`と`cumulative_change_to_holding_fees_rate`と`cumulative_traffic_purchased`と`cumulative_traffic_purchased_cc_spent`と`cumulative_traffic_num_purchases`です。
`/v0/round-totals`の累計の4つの欄は、`cumulative_app_rewards`と`cumulative_validator_rewards`と`cumulative_change_to_initial_amount_as_of_round_zero`と`cumulative_change_to_holding_fees_rate`です。

## 料率を返した1つは削除の印が付かない

`GET /v0/amulet-config-for-round`は、クエリの必須の`round`で選んだroundのAmuletRulesから、一部の情報を返します。
200の応答は、`amulet_create_fee`と`holding_fee`と`lock_holder_fee`と、段ごとの料率の`transfer_fee`を持ちます。
`transfer_fee`は、`SteppedRate`の型で、`initial`と、`amount`と`rate`を持つ`steps`の並びからなります。
404は、`error`を返します。

## 非推奨になってから削除された8つと、そうでない2つ

10のエンドポイントは、非推奨になってから削除された8つと、非推奨の記録がないまま削除された1つと、削除の記録がない1つに分かれます。
図Bは、この履歴を、状態の並びで追います。
段2で非推奨になるのは9つで、段4は、非推奨の記録がない1つの削除を足し、段6は、削除の記録がない1つを示します。

```dragon
state エンドポイントの状態の移り

box Use as 定義が載った [note: 10のエンドポイント, color: slate, icon: doc]
box Dep as 非推奨 [note: 版0.5.10の記録, color: rose, icon: doc]
box Gone as 削除された [note: 全部で9つ, color: blue, icon: doc]

step 最初は定義が載った
  say roundの集計を返した10のエンドポイントは、どれも、資料に定義が載りました。
  start -> Use: 定義が載った
  source CantonのScan APIのGET /v0/aggregated-rounds [url: https://docs.canton.network/reference/splice-scan-api/get-v0aggregated-rounds]

step 版0.5.10で9つが非推奨になる
  say 版0.5.10で、9つのエンドポイントに非推奨の印が付きました。
  Use -> Dep: 9つが非推奨になる
  source CantonのScan APIのGET /v0/aggregated-rounds [url: https://docs.canton.network/reference/splice-scan-api/get-v0aggregated-rounds]
  source CantonのScan APIのPOST /v0/round-totals [url: https://docs.canton.network/reference/splice-scan-api/post-v0round-totals]

step 版0.6.6で3つが削除される
  say 版0.6.6で、上位の一覧を返した4つのうち、3つが非推奨から削除へ移りました。
  Dep -> Gone: 版0.6.6
  source CantonのScan APIのGET /v0/top-providers-by-app-rewards [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-providers-by-app-rewards]
  source CantonのScan APIのGET /v0/top-validators-by-purchased-traffic [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-purchased-traffic]

step 非推奨の記録がない1つが削除される
  say 残る1つのvalidator faucetを受け取ったroundの一覧は、非推奨の記録がないまま、版0.6.6の削除が記録されました。
  act Gone: 非推奨記録なし
  source CantonのScan APIのGET /v0/top-validators-by-validator-faucets [url: https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-validator-faucets]

step 版0.6.7で5つが削除される
  say 版0.6.7で、roundの範囲と統計を返した5つが、非推奨から削除へ移りました。
  Dep -> Gone: 版0.6.7
  source CantonのScan APIのPOST /v0/round-totals [url: https://docs.canton.network/reference/splice-scan-api/post-v0round-totals]
  source CantonのScan APIのPOST /v0/round-party-totals [url: https://docs.canton.network/reference/splice-scan-api/post-v0round-party-totals]

step 削除の記録がない1つ
  say 選んだroundの料率を返した1つは、版0.5.10の非推奨の記録があり、削除の記録がありません。
  act Dep: 削除記録なし
  source CantonのScan APIのGET /v0/amulet-config-for-round [url: https://docs.canton.network/reference/splice-scan-api/get-v0amulet-config-for-round]
```

## 次に読む頁

次の頁「Scanの履歴とACSの古い読み方」は、履歴とACSとholdingsとSynchronizerの情報を読んだエンドポイントが、いつ非推奨になって削除され、何に置き換わったかを追います。

https://cardene.dev/diagrams/canton-scan-retired-endpoints

## 出典

https://docs.canton.network/reference/splice-scan-api/get-v0aggregated-rounds

https://docs.canton.network/reference/splice-scan-api/get-v0amulet-config-for-round

https://docs.canton.network/reference/splice-scan-api/get-v0rewards-collected

https://docs.canton.network/reference/splice-scan-api/get-v0round-of-latest-data

https://docs.canton.network/reference/splice-scan-api/get-v0top-providers-by-app-rewards

https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-purchased-traffic

https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-validator-faucets

https://docs.canton.network/reference/splice-scan-api/get-v0top-validators-by-validator-rewards

https://docs.canton.network/reference/splice-scan-api/post-v0round-party-totals

https://docs.canton.network/reference/splice-scan-api/post-v0round-totals
