Agent Control

Stamp seller

Take this ticket or we do not take your USDC.

You sell something. An agent wants to pay you in USDC. Ask for a stamp first. If the stamp is missing or says stop, do not take the USDC.

Can I pay this address? Buy looks_20 pack ($0.20) or look $0.10. Stamp ticket $0.05.

Works on

  • Solana
  • Ethereum
  • Base
  1. 1

    Ask for the ticket

    Tell the agent: buy stamp_tx $0.05, then call meter_stamp. Can I pay this address? Buy looks_20 pack ($0.20) or look $0.10. Stamp ticket $0.05.

  2. 2

    Take the stamp_id

    They send you a stamp_id. Public verify. No email. No API key.

  3. 3

    Verify, then take USDC

    GET /api/v1/meter/stamp/:id or MCP meter_verify_stamp. If verified is true and decision is allow, take the USDC. If not, do not take it.

  4. 4

    Or hit the live gate

    GET https://agent-control.net/api/v1/gate/demo. Header X-Stamp-Id. No allow stamp → 402 stamp_tx $0.05. Allow → 200.

Live gate. https://agent-control.net/api/v1/gate/demo. Header X-Stamp-Id. No allow stamp returns 402. Allow returns 200.

curl -s -D - https://agent-control.net/api/v1/gate/demo
curl -s -D - https://agent-control.net/api/v1/gate/demo -H 'X-Stamp-Id: <stamp_id>'

One-file recipe. stamp.txt

curl -s https://agent-control.net/stamp.txt
# Stamp seller
# https://agent-control.net/stamp.txt
# Take this ticket or we do not take your USDC.
# Seller page: https://agent-control.net/stamp
# Separate from the Human App. Agents pay themselves. No inbox. No email. No API key. No Approval Inbox.
# Shop Shield $49/mo — pay at /billing/pay?plan=shield
# Can I pay this address? Buy looks_20 pack ($0.20) or look $0.10. Stamp ticket $0.05.
# Packs: looks_20 $0.20. addresses_100 $0.15. Ticket: stamp_tx $0.05.
# Base USDC (EIP-3009 exact). pass_1h catalog-only.
# 1 agent buys stamp_tx $0.05 via Meter 402
curl -s -X POST https://agent-control.net/api/v1/meter/pass -H 'content-type: application/json' -d '{"sku":"stamp_tx"}'
# 402 stamp_tx $0.05. Prefer Base USDC (EIP-3009 exact) to base_pay_to (CDP/AgentKit). No Solana key needed. We never take keys.
# copy src/adapters/meter-pay-base.ts
# https://agent-control.net/adapters/meter-pay-base.ts
import { buyMeterPassBase } from "./src/adapters/meter-pay-base.ts";
await buyMeterPassBase({ from, signExact, sku: "stamp_tx" });
# MCP: meter_buy_pass sku stamp_tx → Base sign_exact → meter_watch({invoice_id, payment}) → token
# Base: POST /api/v1/meter/watch with { invoice_id, payment } = full x402 v2 object from payMeterPassBase / sign_exact. NOT invoice_id-only for Base.
curl -s -X POST https://agent-control.net/api/v1/meter/watch -H 'content-type: application/json' -d '{"invoice_id":"inv_…","payment":{"x402Version":2,"payload":{"authorization":{},"signature":"<sig>"},"accepted":{"network":"base"}}}'
curl -s -X POST https://agent-control.net/api/v1/meter/stamp -H 'content-type: application/json' -H 'X-Agent-Pass: <token>' -d '{"decision":"allow","chain":"solana","to":"<merchant>"}'
# 2 merchant verifies free at https://agent-control.net/stamp or GET /api/v1/meter/stamp/:id or MCP meter_verify_stamp. Public. No email. No API key.
curl -s https://agent-control.net/api/v1/meter/stamp/<stamp_id>
# Same GET with the seller slug. Browser preflight allows X-Seller.
curl -s https://agent-control.net/api/v1/meter/stamp/<stamp_id> -H 'X-Seller: your-slug'
# 3 merchant only accepts USDC if verified is true and decision is allow. If not, do not take the USDC.
# Take this ticket or we do not take your USDC.
# 4 dogfood gate. Live on this site. GET or POST /api/v1/gate/demo. Header X-Stamp-Id. No valid allow stamp → 402 stamp_tx $0.05. verified true and decision allow → 200.
curl -s -D - https://agent-control.net/api/v1/gate/demo
# blocked. Buy stamp_tx, mint allow, pass the stamp id:
curl -s -D - https://agent-control.net/api/v1/gate/demo -H 'X-Stamp-Id: <stamp_id>'
# Merchant copy: src/adapters/stamp-gate.ts
# https://agent-control.net/adapters/stamp-gate.ts
# 5 drop-in. Header X-Stamp-Id. Take this ticket or we do not take your USDC.
# You sell something. An agent wants to pay you in USDC. Ask for a stamp first. If the stamp is missing or says stop, do not take the USDC.
# Next.js App Router route handler
import { requireMerchantStamp } from "./stamp-gate.ts";
export async function POST(req: Request) {
  const gate = await requireMerchantStamp(req, { seller: "your-slug" });
  if (!gate.ok) return Response.json(gate.body, { status: gate.status });
  // stamp is allow: take the USDC and serve the request
  return Response.json({ ok: true, stamp_id: gate.stamp_id });
}
# Express middleware
app.use(async (req, res, next) => {
  const gate = await requireMerchantStamp(req, { seller: "your-slug" });
  if (!gate.ok) return res.status(gate.status).json(gate.body);
  return next();
});
# Hono
app.use(async (c, next) => {
  const req = c.req.raw;
  const gate = await requireMerchantStamp(req, { seller: "your-slug" });
  if (!gate.ok) return c.json(gate.body, gate.status);
  await next();
});

MCP: meter_stamp, meter_verify_stamp.

curl -s https://agent-control.net/api/v1/meter/stamp/<stamp_id>

Docs · Agent Meter · llms.txt · Connect