Sluice

Pay-per-call API gateway monetizing AI inference in native USDC settled on Arc.

Visit Repo
Sluice banner

About

Project Overview: Sluice — Pay-Per-Call API Monetization on Arc Sluice is an autonomous, machine-native pay-per-call API gateway that monetizes digital services and AI inference in native USDC settled instantly on Arc Layer 1. It bridges the critical gap between traditional web APIs and autonomous AI agents by replacing human-dependent SaaS subscriptions with standard HTTP 402 Payment Required challenges and an immutable on-chain UsageVault smart contract.

The Problem

Today, API monetization is fundamentally broken for autonomous machines:

Subscriptions Fail Autonomous Agents: AI agents operate per task or per second. They cannot create accounts, complete KYC, sign monthly subscription contracts, or manage credit card portals. Credit Card Rails are Too Slow & Expensive: Traditional card rails charge $0.30 + 2.9% per transaction and settle in 2–3 business days, making micro-transactions (e.g., $0.05 per AI inference call) economically impossible. Private Database Lock-In: Traditional metered API billing records usage inside private off-chain databases (AWS RDS, Stripe logs). Neither the buyer, the autonomous agent, nor independent third-party auditors can verify whether the billing was accurate, transparent, or manipulated. How Sluice Solves This Sluice provides a trust-minimized, machine-speed monetization layer where payment, execution, and accounting happen autonomously in a single closed loop:

Standard HTTP 402 Challenge: When an unpaid human or AI agent sends an API request (e.g., to an AI inference endpoint), the Sluice Gateway intercepts the call and immediately returns a standard HTTP 402 Payment Required response with structured JSON containing the price (0.05 USDC), the network (Arc Testnet #5042002), and the target UsageVault contract address. Sub-Second Native USDC Settlement: The caller transmits a micro-payment transaction on Arc. Because Arc uses native USDC for both transaction value and network gas, agents do not need secondary gas tokens or complex automated swaps. On-Chain Accounting via UsageVault.sol: The payment triggers recordPayment() on a custom Solidity smart contract on Arc. The contract isolates seller balances, enforces Checks-Effects-Interactions (CEI) against reentrancy, and emits an immutable UsageRecorded event log. Autonomous AI Inference Unlocking: The gateway validates the transaction receipt directly on Arc L1. Once verified, the gateway unlocks the protected microservice (powered by live Google Gemini 3.6 Flash neural models) and delivers the result along with verifiable on-chain transaction proof. Key Technical Innovations Zero Private Database Dependency: The Arc blockchain is the canonical database. If the API seller's servers go down, their revenue accounting, usage receipts, and withdrawable treasury remain completely intact and provable on-chain. Customizable Withdrawal Thresholds: To prevent micro-dust fragmentation and optimize gas efficiency, sellers configure custom payout thresholds (e.g., minimum $0.50 USDC) before executing non-custodial batch withdrawals. Meridian Neumorphic Mission Control: A high-precision tactile dashboard featuring real-time Arc L1 block telemetry, RPC latency ping tracking (~40ms), an interactive 402 visualizer aperture, 1-click prompt presets, and an on-chain audit ledger. 100% Real On-Chain Execution: Zero mocked data. The system is deployed live on Arc Testnet at contract address 0x2fB757b6158320b239a6eC4f7d7A0149D858D890 and is completely scripted for immediate Arc Mainnet deployment.

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?

QuietLast push 82 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.

ServiceNet

Monetize APIs, AI models, and services with instant micropayments using Yellow and ENS

HackMoney 2026Prize winner Dormant#ai#payments