Thanks to visit codestin.com
Credit goes to github.com

Skip to content

X402PESA: Global payments via x402 protocol. Send, spend and stream money anywhere in the world with fees so small they feel like a typo, in under a second, fully onchain and chain agnostic.

Notifications You must be signed in to change notification settings

Prowzi/X402PESA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

X402PESA - Global Payments via x402 Protocol

🌍 X402PESA

Global Payments. Fully Onchain. Chain Agnostic.

License: MIT x402 Protocol Twitter Follow PRs Welcome


💸 Send money anywhere • ⚡ Sub-second finality • 🔗 Any blockchain


🚀 Get Early Access  •  📖 Docs  •  💬 Discord  •  🐦 Twitter




🎯 What is X402PESA?

X402PESA is a next-generation payment rail that brings the simplicity of mobile money to the power of blockchain. Built on the x402 protocol, it enables instant, near-zero-fee payments that work across any chain, anywhere in the world.

"HTTP has status code 402 - Payment Required. It was reserved for future use in 1997. The future is now."


╔══════════════════════════════════════════════════════════════════════════════╗
║                                                                              ║
║     💸 TRADITIONAL PAYMENTS              ⚡ X402PESA                         ║
║     ════════════════════                 ════════                            ║
║                                                                              ║
║     📊 2-5% fees                         📊 0.01% fees                       ║
║     ⏳ 1-3 days                          ⚡ < 1 second                        ║
║     🌍 Regional only                     🌐 Worldwide                        ║
║     🏦 Centralized                       🔗 Fully onchain                    ║
║     📱 Single platform                   ⛓️  Chain agnostic                   ║
║     👤 Humans only                       🤖 Agent-ready                      ║
║                                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝

✨ Features

⚡ Lightning Fast

Transactions settle in under 1 second.

No waiting. No pending states. No uncertainty. Just instant confirmation.

💰 Near-Zero Fees

Pay just 0.01% per transaction.

That's $0.05 on a $500 transfer. Keep more of your money where it belongs.

🌐 Chain Agnostic

Works across any blockchain.

Ethereum, Solana, Base, Arbitrum, Polygon — one interface for all chains.

🔐 Fully Onchain

Every transaction is cryptographically signed and permanently verifiable.

No trust required. Ever.

🤖 Agent-Ready

Built for the x402 protocol.

AI agents and machines can pay just like humans — enabling the agentic economy.

📱 Simple UX

Feels like M-PESA or Venmo.

No seed phrases. No gas management. No crypto complexity.


📊 Fee Comparison Calculator

See how much you save with X402PESA:

Amount Sent Traditional Mobile Money Bank Wire Credit Card X402PESA You Save
$10 $0.50 (5%) $25+ $0.60 $0.001 🟢 99%+
$100 $3.00 (3%) $25+ $3.50 $0.01 🟢 99%+
$1,000 $15.00 (1.5%) $35+ $35.00 $0.10 🟢 99%+
$10,000 $100.00 (1%) $50+ $350.00 $1.00 🟢 98%+
$100,000 $500.00 $75+ $3,500.00 $10.00 🟢 98%+

🏗️ Architecture

                                   ┌────────────────────────┐
                                   │     X402PESA Apps      │
                                   │  ┌──────┐  ┌────────┐  │
                                   │  │ Web  │  │ Mobile │  │
                                   │  └──────┘  └────────┘  │
                                   └───────────┬────────────┘
                                               │
                    ┌──────────────────────────┴──────────────────────────┐
                    │                                                      │
                    │              🔷 x402 Protocol Layer 🔷               │
                    │                                                      │
                    │  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐  │
                    │  │ Payment  │ │ Identity │ │ Routing  │ │ Bridge │  │
                    │  │ Engine   │ │ Service  │ │ Service  │ │Service │  │
                    │  └──────────┘ └──────────┘ └──────────┘ └────────┘  │
                    │                                                      │
                    └──────────────────────────┬──────────────────────────┘
                                               │
          ┌────────────────┬───────────────────┼───────────────────┬────────────────┐
          │                │                   │                   │                │
          ▼                ▼                   ▼                   ▼                ▼
    ┌──────────┐    ┌──────────┐        ┌──────────┐        ┌──────────┐    ┌──────────┐
    │ Ethereum │    │  Solana  │        │   Base   │        │ Arbitrum │    │  + More  │
    │ Mainnet  │    │ Mainnet  │        │    L2    │        │   One    │    │  Chains  │
    └──────────┘    └──────────┘        └──────────┘        └──────────┘    └──────────┘

🌐 The x402 Protocol

X402PESA is built on x402 — an open protocol for programmable payments on the internet.

┌─────────────────────────────────────────────────────────────────────────────────┐
│                                                                                 │
│   📡 HTTP 402: Payment Required                                                 │
│   ═══════════════════════════════                                               │
│                                                                                 │
│   Reserved in HTTP/1.1 (1997) for "future use"                                  │
│   Finally realized with blockchain technology                                   │
│                                                                                 │
│   ┌─────────────────────────────────────────────────────────────────────────┐   │
│   │                                                                         │   │
│   │   1. CLIENT ──── Request Resource ────────────────────► SERVER          │   │
│   │                                                                         │   │
│   │   2. SERVER ──── 402 Payment Required ────────────────► CLIENT          │   │
│   │                  (includes payment details)                             │   │
│   │                                                                         │   │
│   │   3. CLIENT ──── Signed Payment ──────────────────────► CHAIN           │   │
│   │                                                                         │   │
│   │   4. CHAIN ───── Confirmation (< 1 sec) ──────────────► SERVER          │   │
│   │                                                                         │   │
│   │   5. SERVER ──── Resource Delivered ──────────────────► CLIENT          │   │
│   │                                                                         │   │
│   └─────────────────────────────────────────────────────────────────────────┘   │
│                                                                                 │
│   Use Cases:                                                                    │
│   • 🤖 AI agents paying for API calls automatically                            │
│   • 💳 Micropayments for content (pay per article, not subscriptions)          │
│   • 🔄 Streaming payments (per byte, per second, per query)                    │
│   • 🌐 Cross-border instant settlement                                         │
│   • 🎮 In-game economies and digital goods                                     │
│                                                                                 │
└─────────────────────────────────────────────────────────────────────────────────┘

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • PostgreSQL database

Installation

# Clone the repository
git clone https://github.com/Prowzi/X402PESA.git
cd X402PESA/x402pesa-landing

# Install dependencies (we use pnpm for speed)
pnpm install

# Set up environment variables
cp .env.example .env
# Edit .env with your DATABASE_URL

# Initialize database
pnpm prisma generate
pnpm prisma db push

# Start development server
pnpm dev

🎉 Visit http://localhost:3000 to see the app!


🛠️ Tech Stack

Layer Technologies
Frontend Next.js React TypeScript
Styling Tailwind CSS CSS3
Database PostgreSQL Prisma
Deployment Railway Vercel
Protocol x402

📁 Project Structure

x402pesa-landing/
│
├── 📂 components/              # React UI components
│   ├── Layout.tsx              # Main layout (header, footer, meta)
│   ├── FeeSlider.tsx           # Interactive fee comparison slider
│   ├── HowItWorksTabs.tsx      # Tabbed explanation section
│   ├── ScreenShowcase.tsx      # App screenshots carousel
│   └── X402Unlocks.tsx         # Protocol features section
│
├── 📂 lib/                     # Utilities & helpers
│   ├── fees.ts                 # Fee calculation logic
│   ├── i18n.ts                 # Internationalization (EN/SW)
│   └── prisma.ts               # Database client singleton
│
├── 📂 pages/                   # Next.js pages & API routes
│   ├── index.tsx               # Landing page
│   ├── waitlist.tsx            # Waitlist signup form
│   ├── _app.tsx                # App wrapper
│   └── api/
│       └── waitlist.ts         # POST /api/waitlist endpoint
│
├── 📂 prisma/
│   └── schema.prisma           # Database schema
│
├── 📂 styles/
│   └── globals.css             # Global styles, animations, Tailwind
│
├── 📂 public/                  # Static assets
│
├── .env.example                # Environment template
├── tailwind.config.js          # Tailwind configuration
├── tsconfig.json               # TypeScript configuration
└── package.json                # Dependencies & scripts

🎯 Roadmap

🏁 Q4 2024

Foundation

✅ Landing page ✅ Waitlist system ✅ Core architecture ✅ Chain agnostic design ✅ x402 protocol integration

🔨 Q1 2025

Alpha

⬜ Wallet integration ⬜ First chain (Base) ⬜ Developer SDK ⬜ Private beta launch ⬜ Security audit

🧪 Q2 2025

Beta

⬜ Multi-chain support ⬜ iOS & Android apps ⬜ Merchant dashboard ⬜ Public beta ⬜ Fiat on/off ramps

🚀 Q3 2025

Launch

⬜ Production release ⬜ Agent marketplace ⬜ Enterprise APIs ⬜ Global expansion ⬜ More chains


🤝 Contributing

We 💚 contributions! Here's how you can help:

Type Description
🐛 Bug Reports Found a bug? Open an issue
💡 Feature Ideas Have an idea? Start a discussion
📖 Documentation Help us improve docs
🔧 Code Submit a pull request

Development Setup

# Fork and clone
git clone https://github.com/YOUR_USERNAME/X402PESA.git
cd X402PESA/x402pesa-landing

# Install & run
pnpm install
pnpm dev

# Make changes, then submit a PR!

📜 License

X402PESA is open source software licensed under the MIT License.


🔗 Links & Resources

🌐 Website 📖 Docs 🔗 x402 Protocol
🐦 Twitter 💬 Discord 📧 Email



🌍 Built for the World

Fully Onchain  •  Chain Agnostic  •  Worldwide


Made with 💚 by the X402PESA team

© 2024-2025 X402PESA  •  Powered by x402 Protocol


Star this repo if you believe in the future of global payments!

About

X402PESA: Global payments via x402 protocol. Send, spend and stream money anywhere in the world with fees so small they feel like a typo, in under a second, fully onchain and chain agnostic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published