Connect Wallet
Last updated
Was this helpful?
Last updated
Was this helpful?
A user must first grant permission in a browser wallet extension for your dApp before it can read account information or request a signature for a transaction. useWallet()
gives you everything you need to do this. useAllWallets()
returns a list of supported extensions so that you can let the user choose which wallet they would like to connect. e.g. Talisman, PolkadotJS, Subwallet, etc.
After a wallet has been connected any changes made in permissions in the wallet will automatically update in the React application. useWallet
has many more features including tools for switching between accounts. You can .