Skip to content

Annieeeee11/SolSend

Repository files navigation

SolSend

This is a basic project for learning.

Prerequisites

  • npm or yarn
  • A Solana wallet (Phantom recommended)

Installation

  1. Clone the repository

    git clone <your-repo-url>
    cd my-app
  2. Install dependencies

    npm install
    # or
    yarn install
  3. Run the development server

    npm run dev
    # or
    yarn dev
  4. Open your browser Navigate to http://localhost:3000

📁 Project Structure

my-app/
├── app/
│   ├── globals.css          
│   ├── layout.tsx           
│   └── page.tsx            
├── components/
│   ├── Appbar.tsx           
│   ├── BalanceDisplay.tsx   
│   ├── ClientWalletButton.tsx 
│   ├── SendSol.tsx          
│   └── WalletContextProvider.tsx 
├── package.json
└── README.md

🎯 Key Components

WalletContextProvider

  • Manages Solana wallet connections
  • Configures Phantom wallet adapter
  • Handles auto-connection and localStorage persistence

BalanceDisplay

  • Shows real-time SOL balance
  • Updates automatically when balance changes

SendSol

  • Form for sending SOL transactions
  • Input validation and error handling
  • Transaction confirmation with Solana Explorer links

Appbar

  • Navigation header with branding
  • Integrated wallet connection button
  • Responsive design

Built with confusion • Powered by errors 🚀

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors