📄️ Connect to extension wallet
In order to connect to a wallet, we need to call connect from the useShuttle hook as follows:
📄️ Connect to mobile wallet
Connecting to a mobile wallet is a bit more complex than an extension wallet, since it can either be done in a desktop or mobile environment. In a desktop environment its common to use a qr code that the mobile app reads. In a mobile environment we want to redirect to the wallet mobile app.
📄️ Display connected wallet
Most commonly after a user in your dApp connects to a wallet, we should display the wallet the user is connected to, you can do it like so:
📄️ Disconnect from wallet
In order to disconnect from a specific wallet we need to call the disconnectWallet method.
📄️ Broadcast transaction
Shuttle exposes a broadcast method that allows you to as the name suggest broadcast messages.