Access the public key of the active account
ActiveAccountUnspecified thrown when there are multiple Tezos account in the session and none is set as the active one
MissingRequiredScope is thrown if permission to get accounts was not granted
PublicKeyRetrievalError is thrown if the public key is not found
Optional
pairingOption to connect to an existing active pairing. If pairingTopic is defined, a prompt will appear in the corresponding wallet to accept or decline the session proposal. If no pairingTopic, a QR code modal will open in the dapp, allowing to connect to a wallet.
The networks, methods, and events that will be granted permission
Optional
registryOptional registry of wallet deep links to show in the Modal
selected network
Static
initInitialize a WalletConnect provider (Initialize a WalletConnect client with persisted storage and a network connection)
await WalletConnect.init({
projectId: "YOUR_PROJECT_ID", // can get YOUR_PROJECT_ID from [Reown Cloud](https://cloud.reown.com)
metadata: {
name: "YOUR_DAPP_NAME",
description: "YOUR_DAPP_DESCRIPTION",
icons: ["ICON_URL"],
url: "DAPP_URL",
},
});
Description
The
WalletConnect
class implements theWalletProvider
interface, providing an alternative toBeaconWallet
. This package enables dapps built with Taquito to connect to wallets via the WalletConnect/Reown protocol.Note
Currently, a QR code is displayed to establish a connection with a wallet. As more Tezos wallets integrate with WalletConnect, we plan showing a list of available wallets alongside the QR code.