SwiftPay

Instant crypto payments via state-channel clearing, settled later in USDC—Visa-style for Web3.

HackMoney 2026Shipped January 30, 2026Prize winner Dormant#defi#payments#privacy#identity#infra#security
Visit Repo
SwiftPay banner

About

What is SwiftPay? SwiftPay is a next-generation, crypto-native point-of-sale (PoS) payment infrastructure that enables instant, cross-chain USDC payments between consumers and merchants. Think of it as "Apple Pay for crypto", users scan a QR code at a coffee shop, and the payment clears in under 200 milliseconds, regardless of which blockchain they have funds on.

The Problem We Solve

Traditional crypto payments suffer from three critical pain points:

Slow Finality: Bitcoin takes 10+ minutes, Ethereum up to 12 seconds for a single confirmation, far too slow for retail checkout. Chain Fragmentation: Users hold assets on different chains (Arbitrum, Base, Polygon, etc.), but merchants want funds in one place. Poor UX: Current solutions require copy-pasting addresses, selecting networks, and waiting for confirmations. SwiftPay eliminates all three.

Architecture Overview

SwiftPay is a full-stack Web3 payment platform consisting of:

┌─────────────────────────────────────────────────────────────────┐ │ SWIFTPAY ARCHITECTURE │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ LAYER 1: USER INTERFACE (Next.js 15 Frontend) │ │ ├── User Wallet Panel (MetaMask/RainbowKit) │ │ ├── QR Code Scanner (jsQR + BarcodeDetector) │ │ ├── Merchant Dashboard │ │ └── ENS-Powered Merchant Discovery │ │ │ │ LAYER 2: INSTANT CLEARING (Yellow Network) │ │ ├── Nitrolite SDK State Channels │ │ ├── Off-chain Payment Aggregation │ │ └── <200ms Clearing Time │ │ │ │ LAYER 3: SETTLEMENT ORCHESTRATION (Express.js Backend) │ │ ├── ENSService (Merchant Preferences) │ │ ├── AvailBridgeService (Cross-chain via Avail Nexus) │ │ ├── ArcVaultService (Final Settlement) │ │ └── WebSocket Real-time Notifications │ │ │ │ LAYER 4: BLOCKCHAIN LAYER │ │ ├── Ethereum Sepolia (ENS + Yellow Channels) │ │ ├── Avail Nexus (Cross-chain Bridge) │ │ ├── Arc Testnet (USDC Settlement Vault) │ │ ├── Base Sepolia, Arbitrum Sepolia (Multi-chain Support) │ │ └── SwiftPayVault.sol (ERC-4626 Compliant) │ │ │ └─────────────────────────────────────────────────────────────────┘

Core Technology Stack

Component Technology Purpose Frontend Next.js 15 + TypeScript + wagmi v2 + RainbowKit User/Merchant interfaces Backend Express.js + WebSocket + EventEmitter Settlement orchestration Smart Contracts Solidity (ERC-4626 Vault) USDC custody on Arc Payment Clearing Yellow Network Nitrolite SDK Instant off-chain clearing Cross-Chain Bridge Avail Nexus SDK Move USDC between chains Merchant Identity ENS with Custom Text Records Human-readable merchant names QR Scanning jsQR + BarcodeDetector API Camera-based QR payments

Key Innovations

1. Instant Payment Clearing (<200ms) Using Yellow Network's Nitrolite SDK, payments are cleared off-chain through state channels. The user's payment is instantly recognized without waiting for blockchain confirmations. This enables true point-of-sale experiences.

2. ENS-Based Merchant Identity

Merchants register ENS names like coffee.swiftpay.eth with custom text records:

swiftpay.endpoint = "https://api.merchant.com/payments" swiftpay.vault = "0xVaultAddress" swiftpay.chain = "arc-testnet" swiftpay.schedule = "daily" Users simply scan a QR or search "coffee.swiftpay.eth" instead of dealing with hex addresses.

3. Cross-Chain Settlement Automation

The Settlement Orchestrator automatically:

Reads merchant preferences from ENS

Aggregates all cleared payments from Yellow Network Bridges USDC to Arc via Avail Nexus Deposits into merchant's SwiftPayVault Notifies merchant via WebSocket 4. Multi-Chain Balance Display Users see their USDC balances across Arc Testnet, Base Sepolia, and Arbitrum Sepolia in a single unified view. Pay from any chain — settlement handles the rest.

User Flow

1. CONNECT WALLET └─ User connects MetaMask/WalletConnect 2. SCAN QR CODE └─ Open camera → Scan merchant QR → swiftpay:// protocol decoded 3. CONFIRM PAYMENT └─ See merchant name, amount, chain → One-tap confirm 4. INSTANT CLEAR (<200ms) └─ Yellow Network clears payment off-chain instantly 5. AUTOMATIC SETTLEMENT └─ Backend bridges USDC → Arc Vault → Merchant notified 6. MERCHANT WITHDRAWS └─ Merchant claims from vault at any time

Technical Deep Dive

Frontend (/frontend) Next.js 15 with App Router wagmi v2 for Web3 hooks RainbowKit for wallet connection Custom hooks: useMultiChainUSDCBalances, useYellowNetwork, useWallet Components: QRScanner, PaymentConfirmationModal, UserPanel, MerchantDashboard QR Protocol: swiftpay://base64(JSON) for secure, compact payment requests Backend (/backend) Express.js HTTP API + WebSocket server 4 Core Services: ENSService — Resolve merchant names, read text records AvailBridgeService — Cross-chain USDC bridging with retry logic ArcVaultService — Deposit USDC to merchant vaults SettlementOrchestrator — Coordinates the 6-stage settlement flow 7 API Endpoints for settlement management Automatic Scheduler — Checks merchant settlement schedules every 5 minutes Smart Contracts (/contracts) SwiftPayVault.sol — ERC-4626 compliant vault for merchant USDC deposits Deployed on Arc Testnet (Chain ID: 5042002) Supports multi-merchant deposits and withdrawals

API Endpoints

Settlement Orchestration: POST /api/settlement/merchant/:id → Trigger settlement GET /api/settlement/jobs/:id → Get job status GET /api/settlement/stats → Get statistics POST /api/settlement/settle-all → Settle all due merchants Payment Channels: POST /api/channels/merchant → Create merchant channel POST /api/channels/user → Create user channel POST /api/payments/clear → Clear payment (<200ms) GET /api/payments/history → Get payment history ENS Resolution: GET /api/ens/resolve/:name → Resolve ENS to merchant details

Security Features

State Channel Collateral — Yellow Network requires locked collateral ENS Verification — Merchants verified via ENS ownership ERC-4626 Standard — Industry-standard vault security Private Keys in Env — Never hardcoded, always in .env Retry Logic — 3 attempts with exponential backoff for blockchain ops

Prize Track Alignment

Sponsor Track Integration Yellow Network $15,000 Real Nitrolite SDK state channels, instant <200ms clearing Arc (Circle) $5,000 SwiftPayVault on Arc Testnet, USDC settlement ENS $5,000 Custom text records, merchant identity, schedule automation Avail Bridge Prize Cross-chain USDC via Nexus SDK

Project Structure

swiftpay/ ├── frontend/ # Next.js 15 + wagmi + RainbowKit │ ├── app/ # App Router pages │ ├── components/ # UI components (75+ files) │ ├── hooks/ # Custom React hooks │ └── lib/ # Web3 config, ENS, QR utils ├── backend/ # Express.js + Yellow Network │ ├── src/ │ │ ├── services/ # ENS, Avail, Arc, Orchestrator │ │ └── index.ts # Main server │ └── test-*.ts # Integration tests ├── contracts/ # Solidity smart contracts │ └── src/ │ └── SwiftPayVault.sol # ERC-4626 merchant vault └── docs/ # Architecture documentation

What Makes SwiftPay Special

Production-Ready: 1,000+ lines of core code, 2,700+ lines of documentation Real Integrations: Not mock data — actual Yellow SDK, Avail Nexus, Arc testnet Complete Flow: End-to-end from wallet connect → QR scan → instant clear → settlement Beautiful UI: Cyberpunk-themed glassmorphism design with micro-animations Multi-Chain: Pay from any supported chain, settle on Arc

Future Roadmap

Production mainnet deployment Multi-currency support (USDT, DAI, ETH) Mobile native apps (iOS/Android) Merchant analytics dashboard Push notifications for payments Batch settlement optimization Gas abstraction via ERC-4337 SwiftPay: Pay coffeeshop.eth instantly from any chain. Settle in USDC. Zero friction.

Prizes

  • ENS · Integrate ENS · Integrate ENS

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 299 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.