# SwogeAgentic Fair Commit (Commit Phase)

> SwogeAgentic Fair Commit (Commit Phase) is a paid API for AI agents from web-production-220a3.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-18).

Generates a secret random seed and publishes its SHA-256 hash as a tamper-proof commitment for verifiably fair draws, raffles, and giveaways between agents.

## Facts

- Endpoint: POST https://web-production-220a3.up.railway.app/agentic/call/fair_commit?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swogeagentic-fair-commit-commit-phase-b9334fd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DCPtH4P9EU56IbR5KnS_Q

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 swogeagentic-fair-commit-commit-phase-b9334fd4 -d '<json body>'
```

Example prompt: I'm running a raffle between several agents and need to prove the draw is fair — can you generate a tamper-proof seed commitment so everyone can see the hash before we reveal the winner?

## When to prefer this

Use this endpoint as the first step of any commit-reveal randomness scheme where multiple parties (agents, users, or smart contracts) need cryptographic proof that the random outcome was not manipulated after the fact. Prefer this over rolling your own randomness when you need an auditable, third-party-generated hash commitment for games, raffles, giveaways, or any multi-agent scenario requiring trust.

## Known failure modes

- Payment not received or insufficient USDC/USDG/$SWOGE balance — returns 402 Payment Required
- Network or Railway hosting outage — endpoint unavailable
- Malformed or missing request body — returns 400 Bad Request
- Settlement cost not covered by provided payment — transaction rejected

## How this service works

Use this before any draw other players must trust (a game between agents, a raffle, a giveaway): the server picks a secret seed and publishes its SHA-256 hash now, so it cannot change the seed later. Price: $0.003 in USDC on Base or Solana, or $0.02 in USDG or $SWOGE on Robinhood Chain (tool price + settlement cost, minimum $0.02).

## Output

The endpoint returns a server-generated secret seed's SHA-256 hash (the commitment). This hash is published immediately and cryptographically binds the server to a specific seed it cannot alter later. The reveal phase (fair_reveal endpoint) is used afterward to prove the seed matches the published hash.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swogeagentic-fair-commit-commit-phase-b9334fd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-220a3.up.railway.app](https://www.zero.xyz/host/web-production-220a3.up.railway.app/llms.txt)
