WalletConnectTransport
Defined in: packages/dapp/src/transport/walletconnect.ts:104
WalletConnect-backed transport. The dApp side of the Canton WC namespace.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletConnectTransport(
config):WalletConnectTransport
Defined in: packages/dapp/src/transport/walletconnect.ts:128
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”WalletConnectTransport
Accessors
Section titled “Accessors”connected
Section titled “connected”Get Signature
Section titled “Get Signature”get connected():
boolean
Defined in: packages/dapp/src/transport/walletconnect.ts:162
True once a Canton WC session is established.
Returns
Section titled “Returns”boolean
Methods
Section titled “Methods”disconnect()
Section titled “disconnect()”disconnect():
Promise<void>
Defined in: packages/dapp/src/transport/walletconnect.ts:321
Tear down the WC session.
Returns
Section titled “Returns”Promise<void>
notify()
Section titled “notify()”notify(
event,payload,target?):void
Defined in: packages/dapp/src/transport/walletconnect.ts:289
Dispatch a wallet-pushed notification to onNotification subscribers.
Parameters
Section titled “Parameters”string
payload
Section titled “payload”unknown
target?
Section titled “target?”string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”onNotification()
Section titled “onNotification()”onNotification(
listener): () =>void
Defined in: packages/dapp/src/transport/walletconnect.ts:281
Subscribe to wallet-pushed notifications (BidirectionalTransport). WC wallet
events (session_event) are dispatched here in addition to the onEvent
config bridge, so consumers using either channel receive them.
Parameters
Section titled “Parameters”listener
Section titled “listener”Returns
Section titled “Returns”():
void
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”BidirectionalTransport.onNotification
restore()
Section titled “restore()”restore():
Promise<boolean>
Defined in: packages/dapp/src/transport/walletconnect.ts:294
Restore a previously-approved Canton session (e.g. after reload).
Returns
Section titled “Returns”Promise<boolean>
submit()
Section titled “submit()”submit(
payload):Promise<{[key:string]:unknown;result?:unknown; } | {[key:string]:unknown;error: {code:number;data?:unknown;message:string; }; }>
Defined in: packages/dapp/src/transport/walletconnect.ts:171
Marshal a sigilry RPC call onto the Canton WC namespace. Mirrors the
RpcTransport contract: resolves to { result } or { error } (never
rejects), so the client layer surfaces errors uniformly.
Parameters
Section titled “Parameters”payload
Section titled “payload”method
Section titled “method”string = ...
params?
Section titled “params?”Record<string, unknown> | unknown[] = ...
Returns
Section titled “Returns”Promise<{[key: string]: unknown; result?: unknown; } | {[key: string]: unknown; error: { code: number; data?: unknown; message: string; }; }>
Implementation of
Section titled “Implementation of”submitResponse()
Section titled “submitResponse()”submitResponse():
void
Defined in: packages/dapp/src/transport/walletconnect.ts:272
The dApp issues requests; it never answers them. The responder side
(wallet) owns submitResponse. No-op here to satisfy the interface.
Returns
Section titled “Returns”void