Developer

Why You Should Use Wallet Adapter

If you followed Part 1 of the Scaffold Series [https://solana.com/news/solana-scaffold-part-1-wallet-adapter], or ever wondered why we recommend using the Wallet Adapter Library [https://github.com/solana-labs/wallet-adapter], this article is for you. Let's assume the user already has a wallet app/extension installed such as Phantom [https://phantom.app/] installed. Let's say we want to do that connection a la mano, this is how to code would look like: const connectWallet = async () => {