# X402 Swarm Consensus Protocol

> X402 Swarm Consensus Protocol is a paid API for AI agents from swarm-protocol.onrender.com, paid per call via x402, $0.35/call, status unknown (last checked 2026-10-11).

Returns consensus output from a swarm of AI agents via a micropayment-gated API endpoint on Base Mainnet USDC

## Facts

- Endpoint: GET https://swarm-protocol.onrender.com/tools/swarm_consensus_protocol?utm_source=zero.xyz
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-swarm-consensus-protocol-d2dbea2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aeM9eelr4Z0z2xG7LMTb8

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 x402-swarm-consensus-protocol-d2dbea2f
```

Example prompt: Can you run the swarm consensus protocol to get a collective decision from the agent network on this question — I'm okay paying the $0.35 USDC fee via Base Mainnet.

## When to prefer this

Use this endpoint when you need a collective decision or aggregated output from a coordinated swarm of autonomous AI agents, particularly in workflows where decentralized consensus matters and micropayment authorization via x402/Base USDC is already set up. Prefer it over single-model inference when multi-agent agreement or redundancy is required.

## Known failure modes

- Payment not received or insufficient USDC — returns 402 Payment Required
- Invalid or malformed 'properties' input — may return empty or error data
- Service unavailable on Render hosting — intermittent 503 errors
- Consensus not reached — data object may be empty or partial
- Network timeout during swarm coordination — no result returned

## How this service works

Machine-payable protocol for autonomous AI agent commerce. Monetized tools secured by x402 micropayments on Base Mainnet USDC.

## Output

A JSON object containing a 'status' field ('success'), a 'service' identifier ('swarm_consensus_protocol'), and a 'data' object with the consensus output from the swarm agent network.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "success",
  "service": "swarm_consensus_protocol"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-swarm-consensus-protocol-d2dbea2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from swarm-protocol.onrender.com](https://www.zero.xyz/host/swarm-protocol.onrender.com/llms.txt)
