# Almanac Locomot Verifiable Random Draw API

> Almanac Locomot Verifiable Random Draw API is a paid API for AI agents from almanac.locomot.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a cryptographically verifiable random draw (int, dice, coin, UUID, shuffle, sample, etc.) backed by a drand beacon proof

## Facts

- Endpoint: GET https://almanac.locomot.io/random/proof
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/almanac-locomot-verifiable-random-draw-api-3912c845
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iYHuqQBmz7SMb1Qkfcb87

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 almanac-locomot-verifiable-random-draw-api-3912c845
```

Example prompt: Roll 3d6 for me and give me the cryptographic proof that the result is fair — use the drand beacon so I can verify it independently.

## When to prefer this

Use this endpoint when you need provably fair, auditable randomness backed by a public drand beacon — ideal for games, lotteries, giveaways, or any situation where participants must be able to independently verify that the outcome was not manipulated. Prefer this over a plain RNG when verifiability or reproducibility (via round pinning) is required.

## Known failure modes

- Invalid op enum value returns 400 bad request
- Dice notation malformed (e.g. bad format like '3x6') returns error
- min greater than max returns validation error
- items param empty or malformed JSON/CSV causes parse error
- Requested drand round does not exist or is too far in the future returns error
- Payment not included or insufficient returns 402 Payment Required

## How this service works

Provably-fair draw from the drand beacon with the full verifiable receipt + nonce-binding (the free draw is at GET /random).

## Output

A JSON object containing the draw result (e.g. rolled values, total, or chosen item), the operation type and notation, an array of individual rolls if applicable, a drand beacon object anchoring the randomness to a public round, a cryptographic proof object for independent verification, the engine used, and a boolean indicating whether the result is deterministic given the round.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "k": {
       "type": "integer"
      },
      "n": {
       "type": "integer"
      },
      "op": {
       "enum": [
        "int",
        "dice",
        "coin",
        "bytes",
        "uuid",
        "shuffle",
        "sample",
        "choice",
        "pick"
       ],
       "type": "string",
       "description": "draw type; default int"
      },
      "max": {
       "type": "integer"
      },
      "min": {
       "type": "integer"
      },
      "dice": {
       "type": "string",
       "description": "e.g. 3d6"
      },
      "count": {
       "type": "integer"
      },
      "items": {
       "type": "string",
       "description": "comma list or JSON array"
      },
      "nonce": {
       "type": "string",
       "description": "bind the draw to your context"
      },
      "round": {
       "type": "integer",
       "description": "pin a drand round (reproducible)"
      },
      "sides": {
       "type": "integer"
      },
      "weights": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "op": {
     "type": "string"
    },
    "draw": {
     "type": "string"
    },
    "nonce": {
     "type": "string"
    },
    "proof": {
     "type": "object"
    },
    "rolls": {
     "type": "array"
    },
    "total": {
     "type": "integer"
    },
    "beacon": {
     "type": "object"
    },
    "engine": {
     "type": "string"
    },
    "notation": {
     "type": "string"
    },
    "deterministic_given_round": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/almanac-locomot-verifiable-random-draw-api-3912c845/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from almanac.locomot.io](https://www.zero.xyz/host/almanac.locomot.io/llms.txt)
