LatchPay

LatchPay - Trust-Minimized API Micropayments on Polygon

About

## Wave 5 submission

🔐 LatchPay - Trust-Minimized API Micropayments on Polygon

🌐 LIVE DEMO: https://latch-pay-r.vercel.app/

🎯 WHAT IS LATCHPAY?

LatchPay is a decentralized protocol for pay-per-use API monetization. We enable trustless micropayments between API buyers and sellers using USDC on Polygon.

❌ THE PROBLEM

Traditional API payments are broken:

• Subscriptions force users to pay for unused capacity • Buyers must trust sellers to deliver after payment • Credit card fees make micropayments impossible • No recourse when APIs fail to deliver

✅ OUR SOLUTION

LatchPay fixes this with smart contract escrow: • Pay only for successful API calls (as low as $0.001) • Funds locked until cryptographic proof of delivery • 24-hour dispute window protects buyers • Seller bonds get slashed for misbehavior • On-chain receipts provide permanent proof

📜 DEPLOYED CONTRACTS (Polygon Mainnet)

✅ EndpointRegistry - API listings & pricing https://polygonscan.com/address/0xB949Eb2167CD7669e688B292924829364698d158

✅ EscrowVault - Payment escrow with EIP-712 proofs https://polygonscan.com/address/0xE15194bac21572E14dAEf4e1f3762083957375F4

✅ SellerBondVault - Seller collateral & slashing https://polygonscan.com/address/0xf00035923C1A85E146de312E55ABe9270F7Bb702

✅ ReceiptStore - On-chain receipt storage https://polygonscan.com/address/0xb11e66d9a63DC8206DAaFD7037c6730a09A360C7

🖥️ FRONTEND PAGES

🏠 Landing - Hero, features, how-it-works 🛒 Marketplace - Browse APIs by category 📊 Endpoint Details - Pricing & documentation 💼 Buyer Dashboard - Payments & disputes 🏪 Seller Dashboard - Register APIs & manage bonds 🔍 Polygon Explorer - On-chain data search 📚 Documentation - Integration guides ⚙️ Settings - Wallet & theme management

✨ KEY FEATURES

• HTTP 402 "Payment Required" flow

• USDC escrow protection • EIP-712 signed delivery proofs • Dispute resolution system • Seller bond slashing mechanism • Real-time API marketplace • Category filtering (AI, Data, Compute, Storage, Oracle) • Dynamic.xyz wallet integration

## Wave 6 submission

LatchPay - Wave 6: Full Contract Overhaul and Mainnet Redeployment

Wave 6 delivered a complete protocol upgrade. We built two new smart contracts (ReputationEngine and PaymentRouter), fixed all existing contracts, and redeployed the entire 6-contract suite to Polygon Mainnet at block 83419504.

New Contracts in Wave 6:

ReputationEngine (0xa5b5FC4F47aacDaf86404754CE15EB48a4dEdCe6) - On-chain reputation scoring for sellers and buyers. Composite formula: success rate 70% plus low dispute rate 20% plus volume bonus 10%. Tracks deliveries, disputes, refunds, and USDC volume. Maintains a live top-50 seller leaderboard.

PaymentRouter (0x6b0f731bBF78D2FF9538F0B44e7589B62C209964) - Batch escrow opening up to 10 payments per transaction. Configurable revenue splits with up to 5 recipients per seller. Split balances accumulate and withdraw independently.

Wave 6 Fixes and Improvements:

Fix category filters with bytes32-to-string mapping. Fixed the explorer to scan from deployment block instead of rolling windows so all historical events appear. Added buyer payment release flow with Awaiting Delivery status and manual release button. Fixed long metadata URI overflow with smart name extraction.

Core Protocol (All 6 Contracts Redeployed):

EndpointRegistry (0xe6B482BD271E02BD4CF9c58a895ac1e721aBdf04) - API endpoint marketplace. Sellers register with metadata URIs, per-call USDC pricing, configurable dispute windows, and bond requirements. Five categories: AI, Data, Compute, Storage, Oracle.

EscrowVault (0xadb05512B6a2FD89Dfc01bC6f2276f0ceCCEAfB5) - Payment escrow engine. EIP-712 delivery proof verification, dispute windows, refunds, protocol fees, and automatic coordination with ReceiptStore and ReputationEngine.

SellerBondVault (0x648F2A0d86B998a76FaD2e454D9909CDd37f5A8e) - Seller collateral vault. 7-day minimum lock, up to 50% slashing for misbehavior, withdrawal restrictions during active escrows.

ReceiptStore (0xCF314A60a395e0bfd1E09108d6bA1cdB17D8Bf16) - Immutable delivery receipt ledger with hashes, timestamps, and amounts.

User Flow: Buyer browses the marketplace and selects an API endpoint. Buyer approves USDC and opens an escrow. Seller receives the request, delivers the response, and submits an EIP-712 signed proof on-chain. A configurable dispute window protects the buyer. After the window expires, the buyer can release payment or it releases automatically. Receipts are stored permanently and reputation scores update on every settlement.

Features: Trustless pay-per-call micropayments with no subscriptions. USDC escrow with cryptographic delivery proofs. Configurable dispute windows per endpoint. Seller bond slashing for proven misbehavior. On-chain reputation with composite scoring. Batch payments and revenue splits. Category-based marketplace with five categories. Full blockchain explorer with historical event scanning. Multi-RPC failover with zero API keys. Immutable receipt storage for auditability.

Live: https://latch-pay-r.vercel.app

Prizes

  • Wave 5 grant · 95.74 USDC
  • Wave 6 grant · 45 USDC

From the public Akindo product 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?

No public repo linked, so we can't tell.

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.