DappPay is an innovative decentralized application (DApp) designed for seamless payroll management using blockchain technology powered by Solana's Rust programming language.
This DApp enables organizations to automate their entire pay process—from adding workers in real-time with accurate salary details directly linked through unique identifiers, to creating new organizational entities effortlessly while ensuring compliance and security.
Secure
Blockchain-powered transactions
- Immutable records
- Transparent ledger
- No intermediaries
Fast
Lightning-quick payments
- Sub-second transfers
- Batch processing
- Real-time updates
Smart
AI-assisted management
- Natural language control
- Auto-processing
- Smart contracts
Required: You Need an OpenAI API Key
The AI assistant is powered by your own OpenAI API key — this keeps your usage private, secure, and gives you full control over costs.
How to get one (30 seconds):
1. Go to → platform.openai.com/api-keys
2. Click “Create new secret key”
3. Copy the key (starts with sk-...)
4. Paste it in the chat when prompted
Your key is stored only in your browser • Free tier gives thousands of commands
How to Talk to the AI (Just Use Plain English!)
| Goal | Just type this | Result |
|---|---|---|
| List all organizations | Show my organizations | Shows treasury balances |
| View org details | Show details for Tesla | Workers, salaries, last paid |
| Create organization | Create organization Apple | Instantly created |
| Add worker | Add worker 7yQ... to Tesla salary 3.5 SOL | Worker added |
| Fund treasury | Fund Tesla with 20 SOL | SOL transferred |
| Pay everyone | Process payroll for Tesla | All workers paid |
| Withdraw | Withdraw 8 SOL from Tesla | Sent to your wallet |
Pro tip: The AI remembers your organization names — just use the name you gave it!
Connect Your Wallet
Start by connecting your Solana wallet to the dashboard. This enables transactions and fund management.
Basic Workflow
Create Organization
Ask the AI: "Create organization TechCorp"
Add Workers
Add team members with their wallet addresses and salaries
Fund Treasury
Transfer SOL to your organization's treasury wallet
Process Payroll
Execute payments automatically or manually trigger cycles
Monitor & Withdraw
Track transactions and manage treasury funds
On smaller screens the layout automatically adapts:
- The organizations panel is hidden by default
- Tap the glowing menu button (bottom-right or top-right) to open it
- Chat takes full width for easier typing
- Swipe the panel away when done
Everything works exactly the same — just optimized for touch!
Quick Fixes
| Problem | Fix |
|---|---|
| Nothing happens when I type | Did you set your OpenAI API key? |
| “Invalid orgPda” error | Use the exact org name from your list |
| Insufficient funds | Fund the treasury first! |
| AI keeps asking for missing info | Include org name + amount + wallet address |
Best Practices
- • Always start with “Show my organizations”
- • Use simple org names (no special characters)
- • Fund treasury before adding workers
- • Keep your wallet connected (green dot = good)
Project Structure
dappPay/
├── anchor/ # Solana smart contracts
│ ├── programs/payroll_program/
│ │ └── src/
│ │ ├── instructions/ # Core functions
│ │ ├── states/ # Data structures
│ │ └── errors/ # Error handling
│ └── migrations/
├── app/ # Next.js frontend
│ ├── about/ # Project info
│ ├── dashboard/ # Main dashboard
│ ├── documentation/ # Project docs
│ ├── playground/ # Test suite
│ └── features/ # Feature showcase
├── components/ # Reusable React components
├── lib/ # Utility libraries
├── services/ # Blockchain services
└── utils/ # Helper functionsTotal Files
Code Files
Smart Contracts
Test Cases