Skip to main content
The @apophis-sdk/walletconnect-signer package implements a signer that uses WalletConnect to connect to a mobile wallet. It is currently only supported on mobile devices.

Usage

The WalletConnect signer differs rather dramatically from the other signers due to the asynchronous dual-device nature of WalletConnect. If you use the complementary Cosmos Components package, it already handles WalletConnect for you, and you merely need to call Signer.register. But if you intend to build your own connection modal, there are some things to consider:
Note that the above code is a simplified example, with functions like showQRCode and showErrorToast that must be defined by you.