RemoteAdapter. Remote wallets implement the asynchronous
dApp API, where
actions that need user interaction are completed through a userUrl redirect.
Expose a CIP-103 endpoint
Your service must expose a public RPC URL that implements the CIP-103 request methods and event stream. The SDK ships with a default list of remote wallets; additional ones are added by dApps at runtime.Getting dApps to list your wallet
DApps add your endpoint to their wallet picker with aRemoteAdapter pointed at your public
RPC URL. Share that URL and a display name with integrating dApps. The dApp-side
registration steps are covered in
Wallet discovery.
Establishing a dapp-sdk session
In order to establish a unique session with a dApp by its origin using the@canton-network/dapp-sdk, then your Remote Wallet (assuming it has an open browser communication channel with the dApp) must listen for SPLICE_WALLET_BROADCAST_ORIGIN message events.
This enables secure future communications over window.postMessage (by explicitly setting origin to the dApp, preventing other JS scripts from intercepting messages) and also enables the Remote Wallet to manage user sessions keyed by dApp origins.
An example of this is provided below, courtesy of the Wallet Gateway Remote implementation:
SPLICE_WALLET_BROADCAST_ORIGIN_ACK messages) that is currently used between the dapp-sdk and a Wallet is a W.I.P. and subject to change. A cleaner API & type-safe companion library may be delivered in the future to better facilitate this.
Requirements
- Serve the CIP-103 RPC methods and event stream at a stable, public URL.
- Configure CORS to allow the origins of the dApps that will connect.
- Manage user sessions and issue the session token (JWT) the endpoint expects.
- Handle authorization and signing on your side; never expose keys to the dApp.
Next steps
- CIP-103 Specification — The methods and events your endpoint must implement.