sessionNamespaces

fun sessionNamespaces(chainId: String, accounts: List<DappWallet>, requestedMethods: Collection<String> = emptyList()): WcSessionNamespaces

sessionNamespaces without an adapter instance. A wallet that keeps one adapter (and one DappSession) per peer needs namespaces at proposal time, before any session for that peer exists; the namespaces depend only on the chain and the offered accounts.

requestedMethods is the method list from the dApp's proposal. WalletConnect clients on both ends refuse any request whose method is not in the approved namespaces, so a wallet that approves only its own advertised names silently strands a dApp that proposed the same operations under different ones: the ecosystem speaks canton_-prefixed names while CIP-0103-verbatim dApps use the bare names, and handle already normalizes both into the engine. So the approval is ADVERTISED plus every requested method the engine can actually serve; unknown methods and wallet-to-dApp event names stay refused.