Ask the agentConsoleDocsTractionArcscan
Open app
Getting started
  • Quickstart
Concepts
  • The Meter & Units
  • Streaming & Proof-of-Flow
  • Citation Toll & Royalty Splits
  • Reputation Bonds
Build
  • sluice-pay SDK
  • MCP server
  • API reference
  • Connectors
  • List your endpoint on the Bazaar
Compatibility
  • RSL & llms.txt
  • Self-hosting the toll sidecar
Trust
  • Changelog
  • FAQ
Resources
Whitepaper (PDF) ↗
Getting started

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.

A developer's bench — printed code sheet under calipers, machined parts and field notes

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:

ts
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:

bash
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).

bash
curl https://sluiceflow.vercel.app/gw/receipts | jq '.[0]'
Next The Meter & Units
On this page
  • What Sluice is
  • Pay a resource (SDK)
  • Sell a resource
  • Verify it