# WritersLogic Verifiable Dice Roll

> WritersLogic Verifiable Dice Roll is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Rolls dice notation deterministically from a caller-supplied seed using a documented SHA-256 counter-mode stream, returning all die results, keep/drop marks, and a verifiable transcript anyone can re-derive.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/dice-roll?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-verifiable-dice-roll-6aeed53c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QnK22JiRrqsOw_BO2xZd_

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 writerslogic-verifiable-dice-roll-6aeed53c -d '<json body>'
```

Example prompt: Roll 4d6kh3+2 for me using the seed 'session-42-player-wizard' and give me the full transcript so the referee can re-derive and verify every die.

## When to prefer this

Choose this endpoint when you need a reproducible, auditable dice roll that any party can independently re-derive — for example in tabletop RPG refereeing, tournament play adjudication, or any scenario where roll transparency and verifiability matter more than cryptographic unpredictability. Do NOT use it when you need true randomness for security or gambling, as the seed is public and the outcome is fully deterministic.

## Known failure modes

- Unsupported notation features (exploding dice, rerolls, success counting, d%, fudge dice) return an error
- Notation exceeding 20 groups or 1000 dice returns a validation error
- Seed exceeding 200 characters or notation exceeding 200 characters rejected
- expectRolls array length mismatching actual dice count returns a mismatch error
- Malformed dice notation string returns a parse error
- Payment not provided or insufficient USDC returns 402 Payment Required

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns each individual die face value in notation order, keep/drop markers per die group, the computed total, a SHA-256 transcript digest, and optionally the full draw transcript blocks. If expectTotal or expectRolls were supplied, also returns a boolean match result for each claimed value against the re-derived outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1,
   "description": "Caller seed string. Public: the outcome is a pure function of notation and seed."
  },
  "notation": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1,
   "description": "Dice notation: terms of NdM (N 1-100, M 2-1000) or integers joined by + and -; optional kh/kl/dh/dl with a count on a group. At most 20 groups and 1000 dice."
  },
  "expectRolls": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 1000,
    "minimum": 1,
    "description": "A claimed face."
   },
   "maxItems": 1000,
   "description": "Optional claimed faces in notation order, before keep/drop marks."
  },
  "expectTotal": {
   "type": "integer",
   "maximum": 100000000,
   "minimum": -100000000,
   "description": "Optional claimed total to verify."
  },
  "includeTranscript": {
   "type": "boolean",
   "description": "Default true. False drops blocks and draws (the transcript digest stays)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-verifiable-dice-roll-6aeed53c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
