Skip to content

[Feature]: Allow dapps to read the required namespace methods for walletconnect #1884

@Sednaoui

Description

@Sednaoui

Is your request related to a problem?

As a dapp, there's no way to get the required namespace methods that the wallet is supporting with walletconnect.

Feature Description

The feature would support reading the requiredNamespace for methods so that dapp can adjust its interface based on the supported methods.

Usecase:

If dapps know that a wallet supports wallet_sendFunctionCallBundle, it can adjust its interface to send a bundle call to allow for a one-click interface. This is highly relevant to smart wallets.

Alternative Solutions

The dapp can communicate additional optional methods during session initialization to ask certain methods. That is unfortunately not very useful since the dapp have no means of knowing if the wallet supports the optional methods or not.

The dapp can also communicate required methods during session initialization, but that forces the dapp to not accommodate its interface with all wallets. Also at the moment, popular wallets (metamask) bypass this checks as if it is non-existent. The reason why they do it is to not break any connections with dapps.

Anything else?

No response

Metadata

Metadata

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions