Introductory examples to Solana web application development implemented in React+Typescript and using Web3.js.
Connecting/disconnecting to the Phantom wallet and retrieving the public key. Make sure you have Phantom extension installed in your browser.
Requesting an airdrop (only in devnet/testnet). An airdrop is needed when developing on devnet/testnet so that the user has some SOL for paying the fees and executing transactions.
Transferring lamports from the user's wallet to another destination using the SystemProgram.