PayD is a revolutionary payroll system that enables organizations to pay employees, contractors, and partners across different countries using blockchain-based digital assets. By leveraging Stellar's fast, low-cost network, PayD replaces traditional banking rails with near-instant, transparent, and cost-effective payments.
Key Benefits:
- ⚡ Near-instant salary payments (seconds vs. days)
- 🔍 Transparent transaction tracking on-chain
- 💰 Lower cross-border fees (fraction of traditional banking)
- 📊 Stable-value payouts with predictable conversion rates
Traditional international payroll faces significant challenges:
| Problem | Impact |
|---|---|
| International bank delays | Payments take 2–5 business days |
| High transfer fees | SWIFT + intermediary fees (often 5-15%) |
| Currency conversion issues | Unpredictable FX rates and hidden fees |
| Lack of proof | Difficult to verify payment delivery |
| Contractor/freelancer payments | Many unbanked or prefer digital methods |
Instead of routing through expensive banking infrastructure:
All transactions occur on-chain with full transparency and auditability.
┌─────────────────┐ ┌──────────────┐ ┌─────────────────┐ │ Organization │ │ Backend │ │ Stellar │ │ Dashboard │────│ (API) │────│ Network │ │ (Web App) │ │ │ │ │ └─────────────────┘ └──────────────┘ └─────────────────┘ │ │ │ ▼ ▼ ▼ ┌─────────────────┐ ┌──────────────┐ ┌─────────────────┐ │ Employee │ │ Payroll │ │ Employee │ │ Onboarding │ │ Engine │ │ Wallets │ └─────────────────┘ └──────────────┘ └─────────────────┘ │ ▼ ┌─────────────────┐ │ Local Anchors │ │ (Cash-out) │ └─────────────────┘
| Actor | Role |
|---|---|
| Employer | Funds payroll, schedules payments, manages employees |
| Employee/Contractor | Receives salary in digital assets, converts to local currency |
| Backend System | Handles payroll logic, transaction processing |
| Stellar Network | Processes fast, low-cost transactions |
| Anchor Services | Converts digital assets to local bank/mobile money |
PayD utilizes Stellar's asset issuance capabilities to create organization-specific stable assets:
- Issuer Account: Controlled by the organization
- Backing: 1:1 with USD (or other stable currencies)
- Distribution: Through organization's distribution account
- Trustlines: Employees must accept the asset to receive payments
- Asset Issuance: Creating custom tokens for payroll
- Distribution Accounts: Managing bulk payments
- Trustlines: Employee wallet acceptance
- Anchors: Local currency conversion
- Fast Settlement: Sub-5 second transaction finality
- Employee Management: Add/remove employees with wallet addresses
- Salary Configuration: Set amounts, frequencies (weekly/monthly)
- Bulk Upload: CSV import for payroll lists
- Payment Scheduling: Automated recurring payments
- Analytics: Payroll history, total costs, FX tracking
- Salary Tracking: View incoming payments
- Transaction History: Complete on-chain records
- Balance Management: Asset balances and values
- Withdrawal Options: Multiple anchor services
- Wallet Integration: QR codes for easy setup
Automated Payment Flow:
- Checks scheduled payments at designated times
- Verifies employer account balance and authorization
- Signs and submits Stellar transactions
- Processes bulk payments efficiently
- Logs all transactions in database
- Sends notifications to employees
- Real-time Rates: Live asset-to-fiat conversion (see our FX Rate Fetching Logic for details on fallback and caching architecture).
- Anchor Fees: Transparent withdrawal costs
- Network Fees: Minimal Stellar transaction fees
- Multi-currency Support: Support for various local currencies
Every payment includes:
- Transaction Hash: Unique Stellar transaction ID
- Timestamp: Exact payment time
- On-chain Verification: Public ledger proof
- Audit Trail: Complete payment history
- React 19 - Modern UI framework
- TypeScript - Type-safe development
- Node.js - Runtime environment
- Express.js - API framework
- Stellar SDK - Blockchain integration
- PostgreSQL - Data persistence
- Redis - Caching and session management
- Stellar Network - Primary blockchain
- Soroban - Smart contracts including:
- Bulk Payment: Efficiently distribute funds to multiple recipients.
- Revenue Split: Automate the division of incoming payments.
- Vesting Escrow: Lock and gradually release tokens over time.
- Cross-Asset Payment: Seamlessly convert assets during payments.
- Asset Path Payment: Advanced routing for payments across different assets.
- Stellar Wallets Kit - Wallet integration
- Docker - Containerization
- GitHub Actions - CI/CD pipelines
- ESLint + Prettier - Code quality
- Husky - Git hooks
Start PayD locally in three steps:
- Clone and enter the repo
git clone https://github.com/Gildado/PayD.git cd PayD - Install dependencies
npm install
- Create your local environment and start the app
cp .env.example .env npm run dev
Need the full setup? Keep reading for prerequisites, environment variables, and database setup.
For cloud hosting instructions, see the deployment guide:
Ensure you have the following installed:
- Node.js v22+
- npm or yarn
- Rust (for Soroban contracts)
- Stellar CLI
- Docker (optional, for local development)
-
Clone the repository:
git clone https://github.com/Gildado/PayD.git cd PayD -
Install dependencies:
npm install
-
Environment Setup:
cp .env.example .env
Edit
.envwith your configuration. -
Database Setup:
# Using Docker docker run --name payd-postgres -e POSTGRES_PASSWORD=mypassword -p 5432:5432 -d postgres:15Or set up PostgreSQL manually.
Edit .env with the following key variables:
# Stellar Network
STELLAR_NETWORK=testnet # or mainnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/payd
# API Keys
STELLAR_SECRET_KEY=your_issuer_secret_key
ANCHOR_API_KEY=your_anchor_service_key
# JWT
JWT_SECRET=your_jwt_secretStart the development server:
npm run devBuild for production:
npm run buildRun tests:
npm run testWe'd like to extend a huge thank you to everyone who has contributed to making PayD what it is today! For a full list of our amazing contributors, please see our Contributors List.