Documentation

Everything you need to know about PayLink, the on-chain payroll infrastructure for Africa's digital workforce.

🚀

Core Vision

Nigerian developers and freelancers often lose 10-20% of their hard-earned income to predatory FX conversion fees and unreliable traditional payment rails.

Zero Hidden Fees

Utilizing USDC on Solana for settlement reduces overhead to less than 1%.

Instant Finality

Moving from 3-5 day wire transfers to sub-second settlement.

Financial Autonomy

Providing portable, on-chain payment history independently of centralized platforms.

🏗️

System Architecture

PayLink is designed with a modular, scalable architecture consisting of four primary layers:

  • 1
    Blockchain Layer (Anchor/Rust):

    Secure escrow smart contracts and payroll stream logic on the Solana network.

  • 2
    API Layer (Node.js/Fastify):

    High-performance RESTful services for transaction orchestration and user management.

  • 3
    Frontend Layer (Next.js 14):

    A responsive, premium web interface providing a clean user experience.

  • 4
    Database Layer (Supabase):

    Reliable persistence for user profiles, transaction history, and schedules.

✨

Key Features

🔗

Reusable PayLinks

Every user receives a personalized, shareable URL. Senders can pay in USDC instantly without complex onboarding.

🛡️

Smart Escrow

Funds are held in secure, program-derived addresses (PDAs) with support for one-time links and scheduled payouts.

📅

Payroll Streams

Scheduled recurring payments (weekly, bi-weekly, monthly) for distributed teams and contractors.

💳

Native Off-Ramping

Integrated liquidity bridges allowing workers to convert USDC to local currency and deposit to bank accounts.

🛠️

Technical Stack

ComponentTechnology
BlockchainSolana (Rust / Anchor)
BackendFastify (TypeScript)
FrontendNext.js 14 (App Router)
DatabasePostgreSQL (Supabase)
RPCHelius
🏁

Getting Started

# Clone the repository

git clone https://github.com/your-org/paylink.git

# Run development environment

make dev

The development environment will start the API service, wait for a healthy status, and subsequently launch the Next.js frontend.