Quickstart
Sluice makes the smallest unit of value sellable — a read, a second, a citation, a listen, a call — metered and settled on Arc in USDC via Circle Gateway. Humans and agents pay per use; creators get paid per use.
What Sluice is
A settlement layer for the agent-paid web. It wraps any resource behind an x402 paywall, meters usage in any unit, and settles batched nanopayments gas-free through Circle Gateway. The on-chain anchors (deposit, withdrawal, royalty splits, reputation bonds) are verifiable on Arcscan.
Pay a resource (SDK)
Install @sluice/pay and make a real nanopayment in ten lines:
import { SluicePay } from "@sluice/pay";
const sluice = new SluicePay({ privateKey: process.env.PK as `0x${string}` });
const resources = await sluice.discover();
const r = resources.find((x) => x.unitType === "per_request")!;
const { data, amount } = await sluice.pay(r.id, {
maxAmount: 0.05, // per-call ceiling (USDC)
reason: "ground my answer", // audit trail
});
console.log(`paid ${amount} USDC for "${r.name}"`, data);Sell a resource
Register a priced, x402-protected resource from the API or the Creator Studio:
curl -X POST https://sluiceflow.vercel.app/gw/resources -H 'content-type: application/json' -d '{
"name": "Premium Quote",
"unitType": "per_request",
"price": "$0.001",
"path": "premium-quote"
}'Verify it
Every settlement is real. Read receipts from the registry, and inspect the on-chain anchors on Arcscan (Gateway Wallet, BondEscrow, ReputationRegistry).
curl https://sluiceflow.vercel.app/gw/receipts | jq '.[0]'