Blog · Blockchain apps
Web3 Front Ends: Connecting Wallets in a React App
The front end of a dApp has one awkward job: reaching the user's wallet. It has to work with browser extensions, phone wallets and built-in wallets like MiniPay.
· 2 min read
The cases
- A browser extension wallet. The page finds it and asks to connect.
- A phone wallet. WalletConnect shows a QR code on a computer, or opens the wallet app on a phone.
- A built-in wallet. MiniPay connects on page load with no list.
What a good wallet layer does
- Lists every wallet the browser has.
- Remembers the choice and reconnects on reload.
- Names the network and says when it is the wrong one.
- Shows amount and recipient before each signature.
- Says what to do when no wallet exists.
What GoodBuild does
Apps published by GoodBuild get its own wallet layer: a wallet list, a MiniPay auto-connect and, when the owner has set it up, WalletConnect. Some parts, such as phone deep links and a MiniPay session, are not yet confirmed on every real device, so test on your own phone before you share a link.
Questions people ask
What is WalletConnect?
A protocol that links a website to a wallet on your phone. On a computer you scan a QR code; on a phone the page opens the wallet app directly.
Why does my dApp need a network check?
A wallet can be on the wrong network. The page should say so and offer to switch, so the user doesn't sign something on a chain you didn't mean.
Do I write this code myself?
Not with an AI builder. It adds a wallet layer for you, and you check it on your own devices.