# registryのAPI

> walletがregistryかScan Proxyから、instrumentの情報とtransferとallocationのchoice contextを受け取る所を、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-ext-registry-api
- 公開日: 2026-11-24
- 更新日: 2026-11-24
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [instrumentの情報と表示の決まりを引く](https://cardene.dev/diagrams/canton-token-instrument-metadata.md): walletがregistryのmetadataのAPIから、支える標準とinstrumentの情報を取得し、額の桁や止まった状態やaccountの欄を表示にどう使うかを2つの図で追います。
- 子の図解: [transferの文脈を受け取る](https://cardene.dev/diagrams/canton-transfer-choice-context.md): transferのchoiceの前に、registryかScan Proxyから受け取るfactoryとchoice contextの要求と応答を2つの図で追い、transferの種類は表で比べます。
- 子の図解: [allocationの文脈を受け取る](https://cardene.dev/diagrams/canton-allocation-choices.md): allocationを作り、settleし、cancelやwithdrawをする前に、registryかScan Proxyからfactoryとchoice contextを受け取るエンドポイントと、V1とV2の違いを2つの図で追います。

この章では、Token Standardのregistryが台帳の外に出すAPIを、walletとアプリが呼ぶ側から追います。
registryは、トークンのinstrumentを管理し、所有の記録を持ち、台帳の上のDamlのinterfaceと、台帳の外のHTTPのAPIを出すアプリです。
このAPIは、registryが自ら出す版と、validatorのAPIの下のScan Proxyの版の2か所に置かれます。
walletが呼ぶ先は対象の資産で決まり、Canton Coinのregistryへの接続にはScan ProxyのURLを使い、ほかのToken Standardの資産には各発行者のregistryのURLを使います。

まず、registryが支える標準とinstrumentの情報を取得するAPIを見ます。
額の桁と止まった状態とaccountの欄を、walletが表示にどう使うかを追います。

https://cardene.dev/diagrams/canton-token-instrument-metadata

次に、transferを始める時のfactoryと、acceptなど進行中の操作の前のchoice contextを受け取るAPIを見ます。
返るtransferの種類と、開示するコントラクトの欄、reassignmentの途中の失敗を追います。

https://cardene.dev/diagrams/canton-transfer-choice-context

最後に、allocationを作る時とV2でsettleする時はfactoryとchoice contextを、cancelやwithdrawの前はchoice contextを受け取るAPIを見ます。
V1とV2のエンドポイントの違いと、サポートが必須の大きさを追います。

https://cardene.dev/diagrams/canton-allocation-choices

Token StandardのDamlの型は章「Token StandardのDaml API」、allocationによる決済の流れは章「allocationによる決済」が追っています。
図の語は、それぞれの頁が説明します。

下の図は、この章の3つの頁が扱う物を、walletからregistryとScan Proxyの順に置き、続けてinstrumentの情報、transfer、allocationの3つのAPIを置きます。
3つのAPIの箱は、押すとそのAPIを説明する頁を開きます。

```dragon
architecture walletからregistryのAPIへ
group Top as walletの呼び出し先 [icon: net]
  box W as wallet [note: 対象の資産に応じてregistryかScan Proxyを呼び、choice contextを受け取る, color: blue, icon: card]
  box R as registry [note: ほかのToken Standardの資産では、各発行者のregistryが台帳の外のHTTPのAPIを出す, color: slate, icon: server]
  box SP as Scan Proxy [note: Canton Coinのregistryへの接続先で、validatorのAPIの下に同じ形のAPIを置く, color: rose, icon: server]
end
group Apis as registryのAPI [color: slate, icon: server]
  box Meta as instrumentの情報を取得するAPI [note: 額の桁と止まった状態とaccountの欄, color: slate, icon: db, link: /diagrams/canton-token-instrument-metadata]
  box Tr as transferのAPI [note: 返るtransferの種類と開示するコントラクト, color: slate, icon: card, link: /diagrams/canton-transfer-choice-context]
  box Al as allocationのAPI [note: V1とV2のエンドポイントの違い, color: slate, icon: refresh, link: /diagrams/canton-allocation-choices]
end

step walletのまわり
  say walletは、対象の資産に応じて、Canton Coinならvalidatorの下のScan Proxyを、ほかのToken Standardの資産なら発行者のregistryを呼びます。
  W -> R: APIを呼ぶ
  W -> SP: APIを呼ぶ
  source Cantonの接続先の案内 [url: https://docs.canton.network/integrations/wallets-and-exchanges/integrating-with-canton#connection-parameters]
  source CantonのToken Metadata API [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1info]
  source CantonのToken Metadata API instruments [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments]
  source CantonのToken Metadata API instrumentId [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments:instrumentid]
  source CantonのScan ProxyのToken Metadata API [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1info]
  source CantonのScan ProxyのToken Metadata API instruments [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments]
  source CantonのScan ProxyのToken Metadata API instrumentId [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments:instrumentid]

step registryのAPI
  say registryの台帳の外のAPIは、instrumentの情報を取得するAPIと、transferのAPIと、allocationのAPIの3つです。
  source CantonのToken Metadata API [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1info]
  source CantonのToken Metadata API instruments [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments]
  source CantonのToken Metadata API instrumentId [url: https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments:instrumentid]
  source CantonのScan ProxyのToken Metadata API [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1info]
  source CantonのScan ProxyのToken Metadata API instruments [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments]
  source CantonのScan ProxyのToken Metadata API instrumentId [url: https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments:instrumentid]
  source CantonのTransfer Instruction API accept [url: https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextsaccept]
  source CantonのTransfer Instruction API reject [url: https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextsreject]
  source CantonのTransfer Instruction API withdraw [url: https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextswithdraw]
  source CantonのTransfer Instruction API transfer-factory [url: https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1transfer-factory]
  source CantonのTransfer Instruction V2 API accept [url: https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextsaccept]
  source CantonのTransfer Instruction V2 API reject [url: https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextsreject]
  source CantonのTransfer Instruction V2 API withdraw [url: https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextswithdraw]
  source CantonのTransfer Instruction V2 API transfer-factory [url: https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2transfer-factory]
  source CantonのScan ProxyのTransfer Instruction API accept [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextsaccept]
  source CantonのScan ProxyのTransfer Instruction API reject [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextsreject]
  source CantonのScan ProxyのTransfer Instruction API withdraw [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextswithdraw]
  source CantonのScan ProxyのTransfer Instruction API transfer-factory [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1transfer-factory]
  source CantonのScan ProxyのTransfer Instruction V2 API accept [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextsaccept]
  source CantonのScan ProxyのTransfer Instruction V2 API reject [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextsreject]
  source CantonのScan ProxyのTransfer Instruction V2 API withdraw [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextswithdraw]
  source CantonのScan ProxyのTransfer Instruction V2 API transfer-factory [url: https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2transfer-factory]
  source CantonのAllocation API cancel [url: https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextscancel]
  source CantonのAllocation API execute-transfer [url: https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextsexecute-transfer]
  source CantonのAllocation API withdraw [url: https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextswithdraw]
  source CantonのAllocation Instruction API allocation-factory [url: https://docs.canton.network/reference/splice-allocation-instruction-api/post-registryallocation-instructionv1allocation-factory]
  source CantonのAllocation Instruction V2 API accept [url: https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2:allocationinstructionidchoice-contextsaccept]
  source CantonのAllocation Instruction V2 API withdraw [url: https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2:allocationinstructionidchoice-contextswithdraw]
  source CantonのAllocation Instruction V2 API allocation-factory [url: https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2allocation-factory]
  source CantonのAllocation V2 API cancel [url: https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationsv2:allocationidchoice-contextscancel]
  source CantonのAllocation V2 API withdraw [url: https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationsv2:allocationidchoice-contextswithdraw]
  source CantonのAllocation V2 API settlement-factory [url: https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationv2settlement-factory]
  source CantonのScan ProxyのAllocation API cancel [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextscancel]
  source CantonのScan ProxyのAllocation API execute-transfer [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextsexecute-transfer]
  source CantonのScan ProxyのAllocation API withdraw [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextswithdraw]
  source CantonのScan ProxyのAllocation Instruction API allocation-factory [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-api/post-v0scan-proxyregistryallocation-instructionv1allocation-factory]
  source CantonのScan ProxyのAllocation Instruction V2 API accept [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2:allocationinstructionidchoice-contextsaccept]
  source CantonのScan ProxyのAllocation Instruction V2 API withdraw [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2:allocationinstructionidchoice-contextswithdraw]
  source CantonのScan ProxyのAllocation Instruction V2 API allocation-factory [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2allocation-factory]
  source CantonのScan ProxyのAllocation V2 API cancel [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationsv2:allocationidchoice-contextscancel]
  source CantonのScan ProxyのAllocation V2 API withdraw [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationsv2:allocationidchoice-contextswithdraw]
  source CantonのScan ProxyのAllocation V2 API settlement-factory [url: https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationv2settlement-factory]
```

## 出典

https://docs.canton.network/integrations/wallets-and-exchanges/integrating-with-canton#connection-parameters

https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1info

https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments

https://docs.canton.network/reference/splice-token-metadata-service/get-registrymetadatav1instruments:instrumentid

https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1info

https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments

https://docs.canton.network/reference/splice-scan-proxy-token-metadata-service/get-v0scan-proxyregistrymetadatav1instruments:instrumentid

https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextsreject

https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1:transferinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-transfer-instruction-api/post-registrytransfer-instructionv1transfer-factory

https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextsreject

https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2:transferinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-transfer-instruction-v2-api/post-registrytransfer-instructionv2transfer-factory

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextsreject

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1:transferinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-api/post-v0scan-proxyregistrytransfer-instructionv1transfer-factory

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextsreject

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2:transferinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-scan-proxy-transfer-instruction-v2-api/post-v0scan-proxyregistrytransfer-instructionv2transfer-factory

https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextscancel

https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextsexecute-transfer

https://docs.canton.network/reference/splice-allocation-api/post-registryallocationsv1:allocationidchoice-contextswithdraw

https://docs.canton.network/reference/splice-allocation-instruction-api/post-registryallocation-instructionv1allocation-factory

https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2:allocationinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2:allocationinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-allocation-instruction-v2-api/post-registryallocation-instructionv2allocation-factory

https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationsv2:allocationidchoice-contextscancel

https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationsv2:allocationidchoice-contextswithdraw

https://docs.canton.network/reference/splice-allocation-v2-api/post-registryallocationv2settlement-factory

https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextscancel

https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextsexecute-transfer

https://docs.canton.network/reference/splice-scan-proxy-allocation-api/post-v0scan-proxyregistryallocationsv1:allocationidchoice-contextswithdraw

https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-api/post-v0scan-proxyregistryallocation-instructionv1allocation-factory

https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2:allocationinstructionidchoice-contextsaccept

https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2:allocationinstructionidchoice-contextswithdraw

https://docs.canton.network/reference/splice-scan-proxy-allocation-instruction-v2-api/post-v0scan-proxyregistryallocation-instructionv2allocation-factory

https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationsv2:allocationidchoice-contextscancel

https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationsv2:allocationidchoice-contextswithdraw

https://docs.canton.network/reference/splice-scan-proxy-allocation-v2-api/post-v0scan-proxyregistryallocationv2settlement-factory
