# CantonとSpliceのAPIの地図

> CantonのParticipant NodeとSpliceのノードが出すAPIを、通信の形と使い分け、安定度の札、Spliceの選び方、クライアントのライブラリが備える機能の順に、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-api-landscape
- 公開日: 2026-11-23
- 更新日: 2026-11-23
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [ノードが出すAPIを使い分ける](https://cardene.dev/diagrams/canton-api-map.md): Participant NodeのLedger APIが出すgRPCとJSONの2つのバインディングの通信の形とポートと向く場面と、Spliceのアプリの層が出すREST APIの認証と後方互換の扱いを、2つの図で追います。
- 子の図解: [APIの安定度の札を読む](https://cardene.dev/diagrams/canton-api-status-labels.md): 互換の扱いを文書にしたpublic APIに入る面と入らない物を分け、機能に付くStable、Beta、Alphaの札を読む時の判断点を、2つの図と比べる表で追います。
- 子の図解: [SpliceのAPIを選んで呼ぶ](https://cardene.dev/diagrams/canton-splice-api-map.md): APIの使い分けは表で見て、Scan Appが台帳のデータを写して見せる流れと、SpliceのアプリがJWTのsubとaudを確かめる流れを、2つの図で追います。
- 子の図解: [クライアントのライブラリが備える機能](https://cardene.dev/diagrams/canton-client-standard.md): Ledger Client Standardの機能を、今求めるRequiredと、Ledger APIが基の機能を出した後に求めるUpcomingに分け、接続先とやり直しを2つの図で追います。

前の章「Smart Contract Upgrade」では、packageを止めずに版を上げる所を見ました。
この章から、アプリと運用者がAPIでノードに話しかける所を追います。
最初に、CantonとSpliceのノードがどのAPIを出し、どれをどう選ぶかを地図にします。

まず、Participant NodeのLedger APIが出すgRPCとJSONの2つのバインディングについて、接続方式とポートと向く場面を比べ、Spliceのアプリの層が出すREST APIについて、認証と後方互換の扱いを比べます。

:::details gRPC
gRPCは、Googleが開発した、ネットワーク越しに別のプログラムの処理を呼び出すための通信の仕組みです。
:::

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

https://cardene.dev/diagrams/canton-api-map

次に、どのAPIが互換の扱いを文書にしたpublic APIに入るかと、機能に付くStable、Beta、Alphaの札が何を約束し何を約束しないかを読みます。

https://cardene.dev/diagrams/canton-api-status-labels

続いて、アプリがLedger APIとScan APIとValidator APIを何のために使い分け、Scan Appが台帳をどう写して見せ、JWTが要るSpliceのアプリのAPIをトークンのsubとaudを合わせてどう呼ぶかを追います。

https://cardene.dev/diagrams/canton-splice-api-map

最後に、台帳のクライアントのライブラリが従うLedger Client Standardで、コード生成とバインディング、Ledger APIの全ての呼び出しに付く基本の仕組み、コマンド、ストリーム、party、package、topology、trafficの機能のうち、どれを今持ち、どれをLedger APIが基になる機能を提供した後の版で持つかを読みます。

https://cardene.dev/diagrams/canton-client-standard

図の語は、それぞれの頁が説明します。

下の図は、この章の4つの頁が扱う物を、呼ぶ側のアプリとクライアントのライブラリ、呼ばれる側のSpliceのアプリの層とParticipant Nodeの順に置きます。
虫眼鏡の印が付いた部品を押すと、その部品の中へ入ります。
外側へ戻る時は、右上の「戻る」か、上に並んだ名前を押します。
部品の中へ入ると、名前の並びの下にその部品を説明する頁の題が出て、押すとその頁を開きます。

```dragon
architecture アプリからAPIへ
group Top as CantonとSpliceのAPI [icon: net]
  box App as アプリ [note: APIを呼ぶ, color: rose, icon: app, link: /diagrams/canton-splice-api-map]
  box Node as Participant Node [note: Ledger APIを出す, color: slate, icon: server, link: /diagrams/canton-api-map]
  box Splice as Spliceのアプリの層 [note: ScanとValidatorのREST API, color: blue, icon: app, link: /diagrams/canton-splice-api-map]
  box Lib as クライアントのライブラリ [note: Ledger Client Standardに準拠する, color: blue, icon: app, link: /diagrams/canton-client-standard]
end
group NodeIn as Participant Nodeの中 [color: slate, icon: server]
  box Lapi as Ledger API [note: gRPCとJSONの2つのバインディング, icon: net, link: /diagrams/canton-api-map]
end
group LapiIn as Ledger APIの中 [color: slate, icon: net]
  box Ver as Version Service [note: Ledger APIの版が分かる, icon: server, link: /diagrams/canton-api-status-labels]
end

step アプリからAPIへ
  say アプリは、Participant NodeのLedger APIと、Spliceのアプリの層のScan APIとValidator APIを、目的で使い分けて呼びます。Ledger Client Standardに準拠するクライアントのライブラリは、Ledger APIをJSONとgRPCで呼びます。
  App -> Node: Ledger APIで呼ぶ
  App -> Splice: REST APIで呼ぶ
  Lib -> Node: JSONとgRPCで呼ぶ
  source CantonのLedger API [url: https://docs.canton.network/sdks-tools/api-reference/ledger-api]
  source CantonのLedger APIのサービス [url: https://docs.canton.network/sdks-tools/api-reference/ledger-api-services]
  source CantonのJSON API [url: https://docs.canton.network/sdks-tools/api-reference/json-api]
  source CantonのAPI Configuration [url: https://docs.canton.network/global-synchronizer/reference/api-configuration]
  source CantonのAuthorization [url: https://docs.canton.network/appdev/deep-dives/authorization]
  source CantonのParties and users on a Canton ledger [url: https://docs.canton.network/appdev/deep-dives/manage-daml-parties]
  source CantonのSplice APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-apis]
  source CantonのSplice HTTP APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-http-apis]
  source CantonのValidator APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-validator-api]
  source CantonのSplice APIs Overview [url: https://docs.canton.network/sdks-tools/api-reference/splice-overview]
  source CantonのScan APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-api]
  source CantonのScan Open API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-openapi]
  source CantonのScan Global Synchronizer Connectivity API [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-gs-connectivity-api]
  source CantonのScan Global Synchronizer Operations API [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-gs-operations-api]
  source CantonのScan API for Current State of CC and Synchronizer Traffic [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-current-state-api]
  source CantonのScan CC Reference Data API [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-cc-reference-data-api]
  source CantonのScan Aggregates API [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-aggregates-api]
  source CantonのScan Bulk Data API [url: https://docs.canton.network/sdks-tools/api-reference/splice-scan-bulk-data-api]
  source CantonのLedger Client Standard [url: https://docs.canton.network/sdks-tools/language-bindings/client-standard]

step Participant Nodeの中
  say Participant Nodeは、Ledger APIをgRPCとJSON over HTTPの2つのバインディングで出し、どちらも共通の台帳操作を持ちます。
  act Lapi: 2つのバインディングで出す
  source CantonのLedger API [url: https://docs.canton.network/sdks-tools/api-reference/ledger-api]
  source CantonのLedger APIのサービス [url: https://docs.canton.network/sdks-tools/api-reference/ledger-api-services]
  source CantonのJSON API [url: https://docs.canton.network/sdks-tools/api-reference/json-api]
  source CantonのAPI Configuration [url: https://docs.canton.network/global-synchronizer/reference/api-configuration]
  source CantonのAuthorization [url: https://docs.canton.network/appdev/deep-dives/authorization]
  source CantonのParties and users on a Canton ledger [url: https://docs.canton.network/appdev/deep-dives/manage-daml-parties]
  source CantonのSplice APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-apis]
  source CantonのSplice HTTP APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-http-apis]
  source CantonのValidator APIs [url: https://docs.canton.network/sdks-tools/api-reference/splice-validator-api]

step Ledger APIの中
  say Participant Nodeが出すLedger APIの版は、動いている間にLedger APIのVersion Serviceで分かります。
  act Ver: 版が分かる
  source CantonのRelease Notes [url: https://docs.canton.network/release-notes]
  source CantonのStatus Definitions and Compatibility [url: https://docs.canton.network/release-notes/feature-status-and-compatibility]
```

一番外の階では、アプリがParticipant NodeのLedger APIと、Spliceのアプリの層のScan APIとValidator APIを呼びます。
Ledger Client Standardに準拠するクライアントのライブラリは、Ledger APIをJSONとgRPCで呼びます。
アプリが3つのAPIをどう使い分け、Scan APIとValidator APIをどう呼ぶかは、頁「SpliceのAPIを選んで呼ぶ」が追います。
クライアントのライブラリが、Ledger APIとPQSとOTLPのサーバーのどれにつなぐかは、頁「クライアントのライブラリが備える機能」が追います。

Participant Nodeの中では、Ledger APIがgRPCとJSONの2つのバインディングで共通の台帳操作を出します。
Ledger APIの中では、Version ServiceがLedger APIの版を知らせます。
2つのバインディングの違いは、頁「ノードが出すAPIを使い分ける」が追います。
public APIの範囲と札の約束は、頁「APIの安定度の札を読む」が追います。

この図では、Spliceのアプリの層を、ScanとValidatorのREST APIを出す1つの部品として、中を持たない形で置きます。
この図では、クライアントのライブラリからLedger APIへの線を、ライブラリがLedger APIを呼ぶ線として引き、PQSとOTLPのサーバーへの線は置きません。

## 出典

https://docs.canton.network/sdks-tools/api-reference/ledger-api

https://docs.canton.network/sdks-tools/api-reference/splice-apis

https://docs.canton.network/release-notes

https://docs.canton.network/release-notes/feature-status-and-compatibility

https://docs.canton.network/sdks-tools/api-reference/splice-http-apis

https://docs.canton.network/sdks-tools/api-reference/splice-overview

https://docs.canton.network/sdks-tools/api-reference/splice-scan-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-openapi

https://docs.canton.network/sdks-tools/language-bindings/client-standard

https://docs.canton.network/sdks-tools/api-reference/ledger-api-services

https://docs.canton.network/sdks-tools/api-reference/json-api

https://docs.canton.network/global-synchronizer/reference/api-configuration

https://docs.canton.network/appdev/deep-dives/authorization

https://docs.canton.network/appdev/deep-dives/manage-daml-parties

https://docs.canton.network/sdks-tools/api-reference/splice-validator-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-gs-connectivity-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-gs-operations-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-current-state-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-cc-reference-data-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-aggregates-api

https://docs.canton.network/sdks-tools/api-reference/splice-scan-bulk-data-api
