Deployed version could be found on link
A modern React-based frontend application for interacting with Solana Escrow smart contracts. This project demonstrates how to build a user-friendly interface for creating and taking offers using SPL Tokens on the Solana blockchain.
- 🔐 Wallet Integration with multiple wallet providers (Phantom, Solflare, etc.)
- 💱 Create escrow offers with SPL tokens
- 📋 View and manage your created offers
- 🔄 Take open offers from other users
- 📱 Responsive and modern UI using Tailwind CSS and shadcn
- 📊 Pagination for better performance
Before you begin, ensure you have the following installed:
- Node.js (v16 or higher)
- npm or yarn
- A Solana wallet (e.g., Phantom, Solflare)
- Clone the repository:
git clone https://github.com/yourusername/solana-escrow.git
cd solana-escrow
- Install dependencies using either yarn or npm:
Using yarn:
yarn install
Using npm:
npm install
- Start the development server:
Using yarn:
yarn dev
Using npm:
npm run dev
- Open your browser and navigate to
http://localhost:3000
src/
├── components/ # React components
├── pages/ # Page components
├── solana-service/ # Solana interaction logic
├── types/ # TypeScript type definitions
└── lib/ # Utility functions
This project serves as an example of how to set up a frontend application that interacts with the Solana blockchain. It demonstrates:
- Connection to Solana RPC providers
- Wallet integration using
@solana/wallet-adapter-react-ui
- SPL Token interactions
- Transaction building and signing
- Program account management
The frontend interacts with a Solana Escrow program that enables:
- Creating offers with any SPL Token
- Taking offers by providing the requested tokens
- Managing offer lifecycle (create, take)
@solana/web3.js
: Core Solana web3 functionality@solana/wallet-adapter-react
: React hooks for Solana wallet integration@solana/wallet-adapter-react-ui
: UI components for wallet connection@solana/spl-token
: SPL Token program interactions@coral-xyz/anchor
: Framework for Solana program interaction
Using yarn:
yarn build
yarn start
Using npm:
npm run build
npm start
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Solana Foundation for the web3.js library
- Coral-xyz team for the Anchor framework
- Solana community for support and resources
For support, please open an issue in the GitHub repository or reach out to the maintainers.