This is a simple React application that demonstrates how to integrate with the Solana blockchain using the Phantom wallet provider. The app allows users to create wallets, connect to existing wallets, transfer SOL tokens, and check wallet balances.
To run the application locally, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Install the project dependencies using the command:
npm install
- Start the development server:
npm start
- Open your browser and go to: http://localhost:3000
- Create a new Solana account.
- Connect to an existing Phantom wallet.
- Request an airdrop of SOL tokens.
- Transfer SOL tokens to connected wallet.
- Check wallet balance.
This project relies on the following technologies and libraries:
- React
- Solana Web3.js
- Phantom Wallet
-
Create a New Solana Account: Click the "Create a New Solana Account" button. This will generate a new account, request an airdrop of SOL tokens, and display the created wallet's information.
-
Connect Wallet: Click the "Connect Wallet" button to connect to an existing Phantom wallet. Once connected, you'll be able to transfer tokens and check balances.
-
Transfer SOL to New Account: After creating a new account or connecting a wallet, use the "Transfer SOL to New Account" button to send SOL tokens to the new account.
-
Get Wallet Balance: Click the "Get Wallet Balance" button to check the balance of the currently connected wallet or the new account.
CODE WITH VENKATESH HAVE FUN WITH VENKATESH