# Token StandardのDaml API

> 外のwalletやアプリが資産を扱うためのToken StandardのDaml APIを、送金の手順から、packageの並び、型、送金の指示、記録、Amuletの実装まで、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-ext-token-standard
- 公開日: 2026-11-24
- 更新日: 2026-11-24
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [Token Standardで資産を送る](https://cardene.dev/diagrams/canton-token-standard.md): walletとアプリがregistryごとのコードなしに、保有を見て、送金とDvPの決済をする手順を、CIP-0056が決めるDamlのinterfaceと台帳の外のAPIで追います。
- 子の図解: [Token Standardの版と並び](https://cardene.dev/diagrams/canton-token-api-packages.md): Token StandardのDaml APIが、どのpackageとmoduleから成り、V1とV2の世代がどう並ぶかを、2つの図で追います。
- 子の図解: [holdingとmetadataの型を知る](https://cardene.dev/diagrams/canton-holding-metadata.md): Token Standardがholdingとaccountとロックをどう表し、choiceへ渡す追加のデータとmetadataをどの型で運ぶかを、2つの図で追います。
- 子の図解: [holdingのtransferを指示する](https://cardene.dev/diagrams/canton-transfer-instruction.md): walletがregistryにholdingのtransferを指示するchoiceと、受け手の受け入れやregistryの段を待つtransfer instructionの進み方を、V1とV2の違いまで追います。
- 子の図解: [burnとmintと変化を記録する](https://cardene.dev/diagrams/canton-burn-mint-events.md): registryがholdingのburnとmintを汎用の形でどう出し、instrumentのadminがholdingの変化をイベントとしてどう報告するかを、2つの図で追います。
- 子の図解: [Amuletが送金を実装する形](https://cardene.dev/diagrams/canton-amulet-token-standard.md): AmuletがToken Standardの送金とallocationをどう実装し、2段の送金とmetadataとchoice contextをどう扱うかを、Spliceのmoduleで追います。

前の章では、外のwalletやアプリをCantonにつなぐ前提と、外のpartyの扱いを見ました。
この章では、外のwalletやアプリが、registryごとのコードなしに資産を扱うための、Token StandardのDaml APIを追います。
Token Standardは、CIP-0056が決める、Damlのinterfaceと台帳の外のAPIの集まりです。
V2は、CIP-0056を広げるCIP-0112が定めます。

まず、walletとアプリが保有を見て、送金と決済をする手順を、CIP-0056の全体から追います。

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

次に、そのDaml APIがどのpackageとmoduleから成り、V1とV2の世代がどう並ぶかを追います。

https://cardene.dev/diagrams/canton-token-api-packages

その次に、holdingとaccountとロック、choiceへ渡す追加のデータとmetadataの型を追います。

https://cardene.dev/diagrams/canton-holding-metadata

続けて、walletがregistryにholdingのtransferを指示するchoiceと、受け手の受け入れやregistryの段を待つtransfer instructionの進み方を追います。

https://cardene.dev/diagrams/canton-transfer-instruction

さらに、registryがholdingのburnとmintを汎用の形でどう出し、instrumentのadminがholdingの変化をイベントとしてどう報告するかを追います。

https://cardene.dev/diagrams/canton-burn-mint-events

最後に、Canton Coinを表すAmuletが、Token Standardの送金とallocationをどう実装し、2段の送金とmetadataとchoice contextをどう扱うかを追います。
Amuletのallocationは、子の頁が扱う送金とロックを使う実装に限ります。
allocationは、V1では資産の予約で、V2では送る側か受け取る側のaccountによる、受け渡しの承認です。

https://cardene.dev/diagrams/canton-amulet-token-standard

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

下の図は、この章の6つの頁が扱う物を、walletとアプリ、registry、Amuletと、packageの版と並び、holdingとmetadataの型、transferの指示、burnとmintとイベントの順に置きます。
箱を押すと、その箱を説明する頁を開きます。

```dragon
architecture walletからToken Standardへ
group Top as Token Standardで資産を扱う所 [icon: net]
  box Wallet as walletとアプリ [note: 保有を見て送金を指示する, color: blue, icon: app, link: /diagrams/canton-token-standard]
  box Reg as registry [note: トークンを管理する, color: slate, icon: server, link: /diagrams/canton-token-standard]
  box Amu as Amulet [note: Canton Coinを表し、子の頁が扱う送金とロックを使うallocationを実装する, color: coin, icon: card, link: /diagrams/canton-amulet-token-standard]
end
group Pages as この章の頁が扱う物 [color: rose, icon: card]
  box Pk as Token StandardのV1とV2 [note: V1とV2のpackageとmodule, icon: db, link: /diagrams/canton-token-api-packages]
  box Ho as holdingとmetadataの型 [note: holdingとaccountとロックと、追加のデータ, icon: card, link: /diagrams/canton-holding-metadata]
  box Tr as holdingのtransferを指示する [note: walletからの指示を受けるchoice, icon: refresh, link: /diagrams/canton-transfer-instruction]
  box Bm as burnとmintとイベント [note: V1のburnとmintは、registryが実装する場合に限る, icon: db, link: /diagrams/canton-burn-mint-events]
end

step walletからToken Standardへ
  say walletとアプリは、registryの台帳の外のAPIからfactoryの情報を得て、送金のchoiceを実行します。registryは、台帳の上のDamlのinterfaceと、台帳の外のAPIを公開します。AmuletはCanton Coinを表し、Token Standardを実装します。
  Wallet -> Reg: 送金を指示する
  source CIP-0056: Canton Network Token Standard [url: https://docs.canton.network/overview/reference/cip-0056]
  source Splice.Amulet.TwoStepTransfer [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulet-twosteptransfer]
  source Splice.AmuletTransferInstruction [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulettransferinstruction]
  source Splice.AmuletAllocation [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amuletallocation]
  source Splice.Amulet.TokenApiUtils [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulet-tokenapiutils]

step この章の頁が扱う物
  say Token StandardのV1とV2のpackageとmoduleの並びと、holdingとmetadataの型は、それぞれの頁が追います。holdingのtransferを指示するchoiceは、送金の指示の頁が追います。V1のburnとmintは、registryが実装する場合に公開でき、V2のholdingの変化は、instrumentのadminがイベントで報告します。
  act Pk: V1とV2のpackageとmodule
  act Ho: holdingとmetadataの型
  act Tr: transferを指示するchoice
  act Bm: V1のburnとmintと、V2のイベント
  source CIP-0056: Canton Network Token Standard [url: https://docs.canton.network/overview/reference/cip-0056]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v2]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-metadata-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v2]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v2]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-request-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-request-v2]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-instruction-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-instruction-v2]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-burn-mint-v1]
  source Splice Daml API Reference [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-events-v2]
  source Splice.Api.Token.HoldingV1 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v1/splice-api-token-holdingv1]
  source Splice.Api.Token.HoldingV2 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v2/splice-api-token-holdingv2]
  source Splice.Api.Token.MetadataV1 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-metadata-v1/splice-api-token-metadatav1]
  source Splice.Api.Token.AllocationV1 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v1/splice-api-token-allocationv1]
  source Splice.Api.Token.AllocationV2 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v2/splice-api-token-allocationv2]
  source Splice.Api.Token.TransferInstructionV1 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v1/splice-api-token-transferinstructionv1]
  source Splice.Api.Token.TransferInstructionV2 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v2/splice-api-token-transferinstructionv2]
  source Splice.Api.Token.BurnMintV1 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-burn-mint-v1/splice-api-token-burnmintv1]
  source Splice.Api.Token.TransferEventsV2 [url: https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-events-v2/splice-api-token-transfereventsv2]

```

一番外の階では、walletとアプリが、registryの台帳の外のAPIからfactoryの情報を得て、送金のchoiceを実行します。
registryは、台帳の上のDamlのinterfaceと、台帳の外のAPIを公開します。
AmuletはCanton Coinを表し、Token Standardを実装します。

下の枠は、頁ごとの分類で、部品ではありません。
Token StandardのV1とV2のpackageとmoduleの並び、holdingとmetadataの型、holdingのtransferを指示するchoice、burnとmintとイベントは、それぞれの頁が追います。
V1のburnとmintは、registryが実装する場合に公開でき、V2のholdingの変化は、instrumentのadminがイベントで報告します。

## 出典

https://docs.canton.network/overview/reference/cip-0056

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulet-twosteptransfer

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulettransferinstruction

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amuletallocation

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-amulet/splice-amulet-tokenapiutils

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v1/splice-api-token-transferinstructionv1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v2/splice-api-token-transferinstructionv2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-burn-mint-v1/splice-api-token-burnmintv1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-events-v2/splice-api-token-transfereventsv2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-metadata-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-instruction-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-request-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-request-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-instruction-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-instruction-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-burn-mint-v1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-transfer-events-v2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v1/splice-api-token-holdingv1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-holding-v2/splice-api-token-holdingv2

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-metadata-v1/splice-api-token-metadatav1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v1/splice-api-token-allocationv1

https://docs.canton.network/sdks-tools/api-reference/splice-daml/splice-api-token-allocation-v2/splice-api-token-allocationv2
