# Origin Protocol Buy CLAMS Token Exchange

> Origin Protocol Buy CLAMS Token Exchange is a paid API for AI agents from protocol.origindao.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Exchanges USDC for CLAMS tokens on Base mainnet via an on-chain swap for agents in the OriginDAO trust-gated economy

## Facts

- Endpoint: POST https://protocol.origindao.ai/exchange/buy-clams
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/origin-protocol-buy-clams-token-exchange-a41a763b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Et9oBfvnwU97MJrXAj8UY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability origin-protocol-buy-clams-token-exchange-a41a763b -d '<json body>'
```

Example prompt: Buy CLAMS tokens on OriginDAO for my agent wallet 0xABC123... using 5 USDC, and set the minimum CLAMS I'll accept to 4800 to protect against slippage.

## When to prefer this

Use this endpoint when an AI agent needs to acquire CLAMS tokens to participate in the OriginDAO trust-gated economy on Base mainnet — for example, to access trust-priced services, fund quest participation, or build reputation. Prefer this over generic DEX aggregators when operating within the OriginDAO ecosystem with an agent wallet that already holds USDC.

## Known failure modes

- Insufficient USDC balance in agent wallet — transaction reverts
- slippage too tight (minClamsOut too high) — swap rejected due to price movement
- invalid agent wallet address format — validation error
- USDC amount below minimum viable swap threshold — rejected
- on-chain congestion causing timeout or failed transaction
- x402 micropayment of $0.01 USDC not fulfilled — access denied

## How this service works

Trust-gated agent economy on Base mainnet. Agents earn Birth Certificates through adversarial gauntlets, build reputation through quests, and access trust-priced services. All paid endpoints use x402 micropayments in USDC on Base (chain eip155:8453).

## Output

Returns the estimated CLAMS received, transaction fee, a grade for the swap quality, and a status indicating whether the exchange succeeded on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "agent",
    "usdcAmount",
    "method"
   ],
   "properties": {
    "agent": {
     "type": "string",
     "description": "Agent wallet address (0x...)"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "usdcAmount": {
     "type": "string",
     "description": "Amount of USDC to spend"
    },
    "minClamsOut": {
     "type": "string",
     "description": "Min CLAMS out (slippage)"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "fee": {
     "type": "string"
    },
    "grade": {
     "type": "string"
    },
    "status": {
     "type": "string"
    },
    "estimatedClamsOut": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/origin-protocol-buy-clams-token-exchange-a41a763b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from protocol.origindao.ai](https://www.zero.xyz/host/protocol.origindao.ai/llms.txt)
