⚡ OpacusPay Unified Demo

Multi-Tier Payment System for AI Agents & APIs on 0G Chain

Network: ● 0G Galileo (16602)
🔗 0G Galileo 💰 0.5% Relayer Fee ⛽ Gasless Payments 💵 USDC + 0G DA 🤖 AI Agent Ready

🔐 Wallet Connection

📱 Micropayments (< 0.01 USDC)
Perfect for AI agent messages, streaming data, and pay-per-byte scenarios. Uses batching and streaming to minimize gas costs for tiny transactions.
Note: Contract minimum is 0.001 USDC. For smaller amounts, type ~10+ characters.

🤖 AI Agent Message

Estimated Cost: 0.000 USDC

📊 Streaming Data

Total Cost: 0.001 USDC
💳 Regular Payments (0.01-100 USDC)
Choose between Standard (user pays gas) or Gasless (relayer pays gas with 0.5% fee). Perfect for everyday transactions and merchant payments.

💸 Standard Payment (User Pays Gas)

⚡ Gasless Payment (Relayer Pays Gas)

💰 Large Payments (> 100 USDC)
Batch multiple transactions together with ZK proof aggregation for optimal gas efficiency. Perfect for bulk payouts, treasury management, and high-value transfers.

📦 Batch Payment Builder

Total Amount: 500 USDC
Gas Savings: ~60% vs individual txs

🔐 Batch Recipients

Recipients will appear here...
🔌 API Auto-Payments (x402 Protocol)
HTTP 402 Payment Required integration. Automatically pay for API calls, LLM requests, and external services. Compatible with OpenAI, Claude, and custom endpoints.

🌐 API Configuration

📡 Test API Call

Status: Not configured
Calls Made: 0 / 0

📊 Cost Comparison

💸 Standard Payment

Payment Amount: 0 ETH
Gas Cost: 0 ETH
Total Cost: 0 ETH

⚡ Gasless Payment

Payment Amount: 0 ETH
Relayer Fee (0.5%): 0 ETH
Total Cost: 0 ETH
💰 You Save: 0 ETH with Gasless Payment!

📡 Live Console

Total Payments
0
Gasless Payments
0
Gas Saved
0 ETH
Relayer Revenue
0 ETH
ℹ️ How Gasless Payments Work (Simulated on Frontend):
  1. Step 1: User approves USDC spending (pays gas once)
  2. Step 2: User signs EIP-712 typed data (NO gas!)
  3. Step 3: User submits TX to blockchain (simulating relayer)
  4. In Production: Relayer would do Step 3 and pay gas
  5. Relayer Revenue: 0.5% fee from payment amount
  6. Result: Real blockchain transaction! Check explorer ✅

⚠️ Demo Note: You're paying gas to simulate the relayer. In production, a real relayer backend would pay gas and earn the 0.5% commission.