# Wallet GatewayのAPI

> Wallet Gatewayの4つのspecの使い分けと、User APIのsessionとnetworkとwalletの管理、署名、dAppからの同期と非同期の呼び出しを、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-wallet-gateway-api
- 公開日: 2026-11-23
- 更新日: 2026-11-23
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [4つのspecを使い分ける](https://cardene.dev/diagrams/canton-wallet-gateway-specs.md): Wallet Gatewayの4つのspecの対象と通信相手と、dApp APIの接続先と認証と、SSEで受ける通知を、2つの図で追います。
- 子の図解: [sessionとnetworkを整える](https://cardene.dev/diagrams/canton-wg-user-setup.md): Wallet GatewayのUser APIで、JWTを得てsessionを始めて終えるまでを図Aで、network、identity provider、API keyの操作を図Bで追い、認証の条件は本文で説明します。
- 子の図解: [walletとpartyを管理する](https://cardene.dev/diagrams/canton-wg-user-api.md): Wallet GatewayのUser APIで、walletとpartyを作り、既定を決め、同期し、外す操作と、署名して実行する流れを、walletの図と署名の流れの図で追います。
- 子の図解: [Wallet Gatewayで署名する](https://cardene.dev/diagrams/canton-wg-signing.md): Wallet Gatewayで、トランザクションの署名を頼んで追い実行する流れと、メッセージの署名と拒否を、User APIとSigning APIの表と2つの図で追います。
- 子の図解: [dAppからwalletを同期で呼ぶ](https://cardene.dev/diagrams/canton-wg-dapp-api.md): dAppがwalletのProvider APIで呼べるメソッドと受け取るイベントを、Sync dApp APIの仕様と合わせて、メソッドの図と呼び出しの流れの図で追います。
- 子の図解: [dAppからwalletを非同期で呼ぶ](https://cardene.dev/diagrams/canton-wg-dapp-remote-api.md): リモートに置かれたwalletのAsync dApp APIが、Sync dApp APIと何が違い、接続と署名と実行の結果をuserUrlとイベントでどう返すかを、2つの流れの図で追います。

前の章「ValidatorとwalletのAPI」では、Validator Appが出すValidator APIと、walletのAPIでtransferを申し出てtrafficを買う呼び方を追いました。
この章では、Wallet GatewayのAPIを、プログラムから呼ぶ側の見方で追います。
Wallet Gatewayの参照は、4つのAPI仕様に分かれ、利用者が話すUser APIと、dAppが話すSync dApp APIとAsync dApp APIと、署名のSigning APIです。

まず、4つのAPI仕様の使い分けと、dApp APIの接続先と認証と、接続を開いたままにして受ける通知を見ます。
次の頁の題「4つのspecを使い分ける」の4つのspecは、この4つのAPI仕様のことで、仕様ごとの呼び出し元と通信相手が分かります。

https://cardene.dev/diagrams/canton-wallet-gateway-specs

次に、User APIで、sessionとnetworkとidentity providerとAPI keyを、どう登録して管理するかを追います。
認証の要らないメソッドと、レート制限のヘッダーも見ます。

https://cardene.dev/diagrams/canton-wg-user-setup

続けて、User APIで、walletとpartyを作り、選び、同期し、署名して送るメソッドを追います。

https://cardene.dev/diagrams/canton-wg-user-api

その次に、Wallet Gatewayで、トランザクションとメッセージの署名を、User APIとSigning APIでどう頼み、どう追い、どう実行するかを追います。

https://cardene.dev/diagrams/canton-wg-signing

さらに、dAppがwalletのdApp APIを同期で呼ぶ時に、どのメソッドとイベントを使い、何を送り何を受けるかを追います。

https://cardene.dev/diagrams/canton-wg-dapp-api

最後に、リモートに置かれたwalletのAsync dApp APIが、Sync dApp APIと何が違い、署名と実行の結果をどう返すかを追います。

https://cardene.dev/diagrams/canton-wg-dapp-remote-api

図の語は、4つのAPI仕様を頁「4つのspecを使い分ける」が、署名を頁「Wallet Gatewayで署名する」が、同期と非同期のdApp APIを頁「dAppからwalletを同期で呼ぶ」と頁「dAppからwalletを非同期で呼ぶ」が説明します。

dApp APIを実装するwalletを、Wallet Providerと呼びます。
Wallet Gatewayは、署名を、walletのsigning providerに委任します。
Signing APIで話す相手はWallet Providerで、実際に署名する委任先は、walletごとに選ぶsigning providerです。

下の図は、この章の6つの頁が扱う物を、利用者とdAppから、Wallet GatewayとdAppが呼ぶwalletの順に置き、Wallet Gatewayの中は、User APIの箱と、Signing APIの箱に分けます。
User APIの中には、sessionとnetworkの箱と、walletとpartyの箱を置きます。
dAppが呼ぶwalletの中には、配備先が違う2つの選択肢として、直に呼べるwalletの箱と、リモートのwalletの箱を置きます。
User APIは署名と実行も頼めるので、頁「Wallet Gatewayで署名する」が、User APIとSigning APIの両方を追います。

虫眼鏡の印が付いた部品を押すと、その部品の中へ入ります。
上の全体の図からも、虫眼鏡の印が付いた部品へ移れます。
外側へ戻る時は、右上の「戻る」か、上に並んだ名前を押します。
中を持たない箱では、箱の下に頁の題が出て、押すとその頁を開きます。

```dragon
architecture Wallet GatewayのAPI
group Top as Wallet Gatewayのまわり [icon: net]
  box U as 利用者 [note: User APIの側, color: slate, icon: user]
  box D as dApp [note: dApp APIの側, color: blue, icon: app]
  box G as Wallet Gateway [note: User APIの相手, color: slate, icon: server, link: /diagrams/canton-wallet-gateway-specs]
  box P as dAppが呼ぶwallet [note: dApp APIを実装するWallet Provider, color: blue, icon: server]
end
group GwIn as Wallet Gatewayの中 [color: slate, icon: server]
  box UserApi as User API [note: 利用者がWallet Gatewayと話し、署名と実行も頼む, icon: user]
  box Sign as Signing API [note: Wallet Providerと話す。署名の委任先はwalletごとに選ぶ, icon: server, link: /diagrams/canton-wg-signing]
end
group UserIn as User APIの中 [color: slate, icon: user]
  box Sess as sessionとnetwork [note: identity providerとAPI keyも整える, icon: refresh, link: /diagrams/canton-wg-user-setup]
  box Wal as walletとparty [note: walletを作り選び同期する, icon: card, link: /diagrams/canton-wg-user-api]
end
group ProvIn as dAppが呼ぶwalletの中 [color: blue, icon: server]
  box Direct as 直に呼べるwallet [note: 配備先の1つ。Sync dApp APIで呼ぶ, icon: app, link: /diagrams/canton-wg-dapp-api]
  box Remote as リモートのwallet [note: 配備先の1つ。Async dApp APIで呼ぶ, icon: net, link: /diagrams/canton-wg-dapp-remote-api]
end

step Wallet Gatewayのまわり
  say 利用者は、User APIでWallet Gatewayと話します。dAppは、dApp APIでwalletと話し、直に呼べるwalletにはSync dApp APIで、リモートのwalletにはAsync dApp APIで話します。
  U -> G: User API
  D -> P: dApp API
  source CantonのAsync dApp APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-remote-api]
  source CantonのAsync dApp APIのaccountschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/accountschanged]
  source CantonのAsync dApp APIのconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connect]
  source CantonのAsync dApp APIのconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connected]
  source CantonのAsync dApp APIのdisconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/disconnect]
  source CantonのAsync dApp APIのgetactivenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getactivenetwork]
  source CantonのAsync dApp APIのgetprimaryaccountの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getprimaryaccount]
  source CantonのAsync dApp APIのisconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/isconnected]
  source CantonのAsync dApp APIのledgerapiの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/ledgerapi]
  source CantonのAsync dApp APIのlistaccountsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/listaccounts]
  source CantonのAsync dApp APIのmessagesignatureの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/messagesignature]
  source CantonのAsync dApp APIのonstatuschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/onstatuschanged]
  source CantonのAsync dApp APIのprepareexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/prepareexecute]
  source CantonのAsync dApp APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/signmessage]
  source CantonのAsync dApp APIのstatusの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/status]
  source CantonのAsync dApp APIのtxchangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/txchanged]
  source CantonのWallet Gateway [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/overview]
  source CantonのSync dApp APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-api]
  source CantonのSync dApp APIのstatusの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/status]
  source CantonのdApp API [url: https://docs.canton.network/integrations/wallet-gateway/reference/dapp-api]
  source CantonのAutomate with the User API [url: https://docs.canton.network/integrations/wallet-gateway/automation/automate-with-user-api]
  source CantonのSigning APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/signing-api]
  source CantonのUser APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/user-api]
  source CantonのSigning providers [url: https://docs.canton.network/integrations/wallet-gateway/operate/signing-providers]
  source CantonのSigning APIのcreatekeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/createkey]
  source CantonのSigning APIのgetconfigurationの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getconfiguration]
  source CantonのSigning APIのgetkeysの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getkeys]
  source CantonのSigning APIのgettransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransaction]
  source CantonのSigning APIのgettransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransactions]
  source CantonのSigning APIのsetconfigurationの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/setconfiguration]
  source CantonのSigning APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signmessage]
  source CantonのSigning APIのsigntransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signtransaction]
  source CantonのSigning APIのsubscribetransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/subscribetransactions]
  source CantonのUser APIのdeletemessagetosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletemessagetosign]
  source CantonのUser APIのdeletetransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletetransaction]
  source CantonのUser APIのexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/execute]
  source CantonのUser APIのgetmessagetosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getmessagetosign]
  source CantonのUser APIのgettransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/gettransaction]
  source CantonのUser APIのlistmessagestosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listmessagestosign]
  source CantonのUser APIのlisttransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listtransactions]
  source CantonのUser APIのsignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/sign]
  source CantonのUser APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/signmessage]
  source CantonのProvider API [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/provider-api]
  source CantonのSDKのイベント [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/events]
  source CantonのSDKのメソッド [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/sdk-methods]
  source CantonのSDKのエラー [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/errors]
  source CantonのSync dApp APIのaccountschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/accountschanged]
  source CantonのSync dApp APIのconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/connect]
  source CantonのSync dApp APIのdisconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/disconnect]
  source CantonのSync dApp APIのgetactivenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getactivenetwork]
  source CantonのSync dApp APIのgetprimaryaccountの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getprimaryaccount]
  source CantonのSync dApp APIのisconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/isconnected]
  source CantonのSync dApp APIのledgerapiの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/ledgerapi]
  source CantonのSync dApp APIのlistaccountsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/listaccounts]
  source CantonのSync dApp APIのmessagesignatureの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/messagesignature]
  source CantonのSync dApp APIのprepareexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecute]
  source CantonのSync dApp APIのprepareexecuteandwaitの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecuteandwait]
  source CantonのSync dApp APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/signmessage]
  source CantonのSync dApp APIのtxchangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/txchanged]

step Wallet Gatewayの中
  say User APIは、利用者がWallet Gatewayと話すための仕様で、署名と実行も頼めます。Signing APIは、Wallet GatewayがWallet Providerと話せるようにする仕様で、実際に署名する委任先はwalletごとに選びます。
  act UserApi: 利用者と話す
  act Sign: Wallet Providerと話す
  source CantonのAutomate with the User API [url: https://docs.canton.network/integrations/wallet-gateway/automation/automate-with-user-api]
  source CantonのService account automations [url: https://docs.canton.network/integrations/wallet-gateway/automation/service-account-automations]
  source CantonのNetworks and identity [url: https://docs.canton.network/integrations/wallet-gateway/operate/networks-and-identity]
  source CantonのUser API [url: https://docs.canton.network/integrations/wallet-gateway/reference/user-api]
  source CantonのUser APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/user-api]
  source CantonのUser APIのaddidpの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addidp]
  source CantonのUser APIのaddnetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addnetwork]
  source CantonのUser APIのaddsessionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addsession]
  source CantonのUser APIのgenerateapikeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/generateapikey]
  source CantonのUser APIのgetnetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getnetwork]
  source CantonのUser APIのgetuserの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getuser]
  source CantonのUser APIのlistapikeysの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listapikeys]
  source CantonのUser APIのlistidpsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listidps]
  source CantonのUser APIのlistnetworksの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listnetworks]
  source CantonのUser APIのlistsessionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listsessions]
  source CantonのUser APIのremoveapikeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeapikey]
  source CantonのUser APIのremoveidpの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeidp]
  source CantonのUser APIのremovenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removenetwork]
  source CantonのUser APIのremovesessionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removesession]
  source CantonのUser APIのselfsignedaccesstokenの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/selfsignedaccesstoken]
  source CantonのSigning APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/signing-api]
  source CantonのSigning providers [url: https://docs.canton.network/integrations/wallet-gateway/operate/signing-providers]
  source CantonのSigning APIのcreatekeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/createkey]
  source CantonのSigning APIのgetconfigurationの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getconfiguration]
  source CantonのSigning APIのgetkeysの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getkeys]
  source CantonのSigning APIのgettransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransaction]
  source CantonのSigning APIのgettransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransactions]
  source CantonのSigning APIのsetconfigurationの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/setconfiguration]
  source CantonのSigning APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signmessage]
  source CantonのSigning APIのsigntransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signtransaction]
  source CantonのSigning APIのsubscribetransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/subscribetransactions]
  source CantonのUser APIのdeletemessagetosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletemessagetosign]
  source CantonのUser APIのdeletetransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletetransaction]
  source CantonのUser APIのexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/execute]
  source CantonのUser APIのgetmessagetosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getmessagetosign]
  source CantonのUser APIのgettransactionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/gettransaction]
  source CantonのUser APIのlistmessagestosignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listmessagestosign]
  source CantonのUser APIのlisttransactionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listtransactions]
  source CantonのUser APIのsignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/sign]
  source CantonのUser APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/signmessage]

step User APIの中
  say sessionとnetworkの操作は、sessionを始めて終え、networkとidentity providerとAPI keyを整えます。walletとpartyの操作は、walletを作り、選び、台帳と同期し、外します。
  act Sess: sessionとnetworkを整える
  act Wal: walletとpartyを管理する
  source CantonのAutomate with the User API [url: https://docs.canton.network/integrations/wallet-gateway/automation/automate-with-user-api]
  source CantonのService account automations [url: https://docs.canton.network/integrations/wallet-gateway/automation/service-account-automations]
  source CantonのNetworks and identity [url: https://docs.canton.network/integrations/wallet-gateway/operate/networks-and-identity]
  source CantonのUser API [url: https://docs.canton.network/integrations/wallet-gateway/reference/user-api]
  source CantonのUser APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/user-api]
  source CantonのUser APIのaddidpの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addidp]
  source CantonのUser APIのaddnetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addnetwork]
  source CantonのUser APIのaddsessionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addsession]
  source CantonのUser APIのgenerateapikeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/generateapikey]
  source CantonのUser APIのgetnetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getnetwork]
  source CantonのUser APIのgetuserの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getuser]
  source CantonのUser APIのlistapikeysの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listapikeys]
  source CantonのUser APIのlistidpsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listidps]
  source CantonのUser APIのlistnetworksの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listnetworks]
  source CantonのUser APIのlistsessionsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listsessions]
  source CantonのUser APIのremoveapikeyの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeapikey]
  source CantonのUser APIのremoveidpの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeidp]
  source CantonのUser APIのremovenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removenetwork]
  source CantonのUser APIのremovesessionの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removesession]
  source CantonのUser APIのselfsignedaccesstokenの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/selfsignedaccesstoken]
  source CantonのUser APIのallocatepartyforwalletの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/allocatepartyforwallet]
  source CantonのUser APIのcreatewalletの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/createwallet]
  source CantonのUser APIのexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/execute]
  source CantonのUser APIのgetwalletの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getwallet]
  source CantonのUser APIのiswalletsyncneededの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/iswalletsyncneeded]
  source CantonのUser APIのlistwalletsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listwallets]
  source CantonのUser APIのremovewalletの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removewallet]
  source CantonのUser APIのsetprimarywalletの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/setprimarywallet]
  source CantonのUser APIのsignの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/sign]
  source CantonのUser APIのsyncwalletsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/syncwallets]
  source CantonのSigning providers [url: https://docs.canton.network/integrations/wallet-gateway/operate/signing-providers]

step dAppが呼ぶwalletの中
  say 直に呼べるwalletは、Sync dApp APIで話す配備先です。リモートに置かれたwalletは、Async dApp APIで話す配備先です。
  act Direct: Sync dApp APIで呼ぶ
  act Remote: Async dApp APIで呼ぶ
  source CantonのProvider API [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/provider-api]
  source CantonのSDKのイベント [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/events]
  source CantonのSDKのメソッド [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/sdk-methods]
  source CantonのSDKのエラー [url: https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/errors]
  source CantonのSync dApp APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-api]
  source CantonのSync dApp APIのaccountschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/accountschanged]
  source CantonのSync dApp APIのconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/connect]
  source CantonのSync dApp APIのdisconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/disconnect]
  source CantonのSync dApp APIのgetactivenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getactivenetwork]
  source CantonのSync dApp APIのgetprimaryaccountの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getprimaryaccount]
  source CantonのSync dApp APIのisconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/isconnected]
  source CantonのSync dApp APIのledgerapiの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/ledgerapi]
  source CantonのSync dApp APIのlistaccountsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/listaccounts]
  source CantonのSync dApp APIのmessagesignatureの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/messagesignature]
  source CantonのSync dApp APIのprepareexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecute]
  source CantonのSync dApp APIのprepareexecuteandwaitの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecuteandwait]
  source CantonのSync dApp APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/signmessage]
  source CantonのSync dApp APIのstatusの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/status]
  source CantonのSync dApp APIのtxchangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/txchanged]
  source CantonのAsync dApp APIの仕様 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-remote-api]
  source CantonのAsync dApp APIのaccountschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/accountschanged]
  source CantonのAsync dApp APIのconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connect]
  source CantonのAsync dApp APIのconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connected]
  source CantonのAsync dApp APIのdisconnectの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/disconnect]
  source CantonのAsync dApp APIのgetactivenetworkの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getactivenetwork]
  source CantonのAsync dApp APIのgetprimaryaccountの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getprimaryaccount]
  source CantonのAsync dApp APIのisconnectedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/isconnected]
  source CantonのAsync dApp APIのledgerapiの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/ledgerapi]
  source CantonのAsync dApp APIのlistaccountsの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/listaccounts]
  source CantonのAsync dApp APIのmessagesignatureの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/messagesignature]
  source CantonのAsync dApp APIのonstatuschangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/onstatuschanged]
  source CantonのAsync dApp APIのprepareexecuteの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/prepareexecute]
  source CantonのAsync dApp APIのsignmessageの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/signmessage]
  source CantonのAsync dApp APIのstatusの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/status]
  source CantonのAsync dApp APIのtxchangedの操作 [url: https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/txchanged]
```

一番外の階では、利用者がUser APIでWallet Gatewayと話し、dAppがdApp APIでwalletと話します。
dApp APIは、直に呼べるwalletにはSync dApp APIで、リモートのwalletにはAsync dApp APIで話します。

Wallet Gatewayの中では、User APIとSigning APIの2つの仕様を置き、署名を頁「Wallet Gatewayで署名する」が追います。
User APIの中では、sessionとnetworkを頁「sessionとnetworkを整える」が、walletとpartyを頁「walletとpartyを管理する」が追います。
dAppが呼ぶwalletの中では、直に呼べるwalletを頁「dAppからwalletを同期で呼ぶ」が、リモートのwalletを頁「dAppからwalletを非同期で呼ぶ」が追います。
Wallet Gatewayと4つのAPI仕様は頁「4つのspecを使い分ける」が追います。

この図では、利用者からWallet Gatewayへの線を、頁「4つのspecを使い分ける」の図が、利用者がWallet GatewayとUser APIで話すと描く形から引きます。
この図では、dAppからwalletへの線を、同じ頁の図がdAppがWallet ProviderとSync dApp APIで話すと描く形と、頁「dAppからwalletを非同期で呼ぶ」の図がdAppがリモートのwalletを呼ぶ形から引きます。
この図では、Wallet GatewayからWallet ProviderへのSigning APIの線を引かず、署名を受け持つ委任先がwalletごとに選ぶsigning providerである事は、頁「Wallet Gatewayで署名する」に任せます。

## 出典

https://docs.canton.network/reference/wallet-gateway-json-rpc/overview

https://docs.canton.network/integrations/wallet-gateway/reference/dapp-api

https://docs.canton.network/integrations/wallet-gateway/reference/user-api

https://docs.canton.network/integrations/wallet-gateway/automation/automate-with-user-api

https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-api

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/status

https://docs.canton.network/integrations/wallet-gateway/automation/service-account-automations

https://docs.canton.network/integrations/wallet-gateway/operate/networks-and-identity

https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/user-api

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addidp

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addnetwork

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/addsession

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/generateapikey

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getnetwork

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getuser

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listapikeys

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listidps

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listnetworks

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listsessions

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeapikey

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removeidp

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removenetwork

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removesession

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/selfsignedaccesstoken

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/allocatepartyforwallet

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/createwallet

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/execute

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getwallet

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/iswalletsyncneeded

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listwallets

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/removewallet

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/setprimarywallet

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/sign

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/syncwallets

https://docs.canton.network/integrations/wallet-gateway/operate/signing-providers

https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/signing-api

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/createkey

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getconfiguration

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/getkeys

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransaction

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/gettransactions

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/setconfiguration

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signmessage

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/signtransaction

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/signing-api/subscribetransactions

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletemessagetosign

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/deletetransaction

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/getmessagetosign

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/gettransaction

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listmessagestosign

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/listtransactions

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/user-api/signmessage

https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/provider-api

https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/events

https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/sdk-methods

https://docs.canton.network/sdks-tools/sdks/dapp-sdk/reference/errors

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/accountschanged

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/connect

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/disconnect

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getactivenetwork

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/getprimaryaccount

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/isconnected

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/ledgerapi

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/listaccounts

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/messagesignature

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecute

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/prepareexecuteandwait

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/signmessage

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-api/txchanged

https://docs.canton.network/reference/wallet-gateway-json-rpc/specs/dapp-remote-api

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/accountschanged

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connect

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/connected

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/disconnect

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getactivenetwork

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/getprimaryaccount

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/isconnected

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/ledgerapi

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/listaccounts

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/messagesignature

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/onstatuschanged

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/prepareexecute

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/signmessage

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/status

https://docs.canton.network/reference/wallet-gateway-json-rpc/operations/dapp-remote-api/txchanged
