ProvablyFair.click

Documentation

Protocols, evidence requirements and service boundaries for players, studios and agents. The REST and MCP references describe the live API at api.provablyfair.click exactly as deployed — nothing here is aspirational.

Overview

The browser verifier performs local reference-protocol calculations for supported game models. The S1–S7 methodology describes the separate human-led audit framework. A specimen or demo certificate is not a real award; consult the Certified Games directory for issued records.

The API source includes customer authentication, subscription invoice and claim routes, agent-credit routes, REST verification and MCP discovery/calls. Live payment collection is enabled: subscriptions and agent credit are billed through server-created invoices verified on-chain. The Swagger page reads the API health endpoint and reports the deployed status; do not infer availability from a hostname or source code alone.

  • Home: product overview and reference verifier.
  • Verify Bets: local calculations for supported reference protocols.
  • Methodology: S1–S7 scope, evidence, deliverables and limitations.
  • Certified Games: certificate directory and clearly labelled specimen.
  • API Pricing: every price in one place — API calls, subscriptions, audits and desktop licenses.
  • Checkout: customer account, one-time ETH/USDC/BTC/SOL invoice and server-confirmed unlock flow.
  • Desktop Checkout: same invoice flow for desktop licenses — the key is issued when payment is verified.
  • Client Portal: account, agent keys and credit, invoices, desktop licenses, synced reports and audit engagements.
  • For Agents: REST/MCP contracts and separately billed agent usage.
  • Swagger: OpenAPI contract and live service health.
  • Blog: verification and audit articles.
  • Learn: plain-language guides to provably fair verification, audits and RTP.

Quickstart

Three ways in, fastest first. All three run against the live API and the free tier — no account, no key, no card.

1. Verify a bet in the browser (30 seconds)

Open the Try it section below and press Verify against the live API. The prefilled dice example verifies end to end: commitment hash, HMAC stream, outcome comparison and your remaining free allowance, in one response.

2. Verify a bet over REST (one curl)

curl -X POST https://api.provablyfair.click/api/v1/verify \
  -H "Content-Type: application/json" \
  -d '{"protocol":"pfc-hmac-v1","game":"dice","serverSeed":"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6","serverSeedHash":"c6e10d0dc8b822097c87ad06e68bd90cb71dcef5f8f54a9034ab6aeb35999afc","clientSeed":"player-seed-4815","nonce":42,"observedOutcome":{"roll":88.25}}'

A verified_reference_round status with a freeTier field means you are done. The full semantics are in Verify a round and Agents, API & MCP.

3. Connect an MCP client (two minutes)

Point any Streamable HTTP MCP client at POST https://api.provablyfair.click/mcp. The three no-key tools (list_games, slots_rtp, verification_stats) plus free-tier verify_bet work immediately; add a free agent key when you need the paid tools. Configuration and worked calls are in the MCP server section.

Going further

Verify a round

  1. Confirm that the operator uses exactly pfc-hmac-v1 with the same game mapping.
  2. Choose the game and enter the client seed, revealed server seed and non-negative integer nonce.
  3. Supply the original SHA-256 server-seed commitment, if available. Set the game-specific options.
  4. Select Verify Result and compare the computed output with the game’s recorded output yourself.

Verified means a supported reference computation completed and any supplied commitment matched. The tool does not receive the operator’s recorded outcome, so it cannot automatically establish a match. Without a commitment, it cannot establish that the seed was fixed before the wager.

Failed: a supplied commitment does not match the reveal. Inconclusive: inputs are missing or invalid. Unsupported: there is no supported game or setting. None of these statuses is a human certification verdict.

Verification protocol — pfc-hmac-v1

Seeds are encoded as UTF-8. Whitespace is not stripped from seeds when hashing or computing. The optional commitment is compared as trimmed, lowercase hexadecimal. The nonce must be a safe, non-negative integer.

commitment = hex(SHA256(UTF8(serverSeed)))
digest = HMAC_SHA256(serverSeed, clientSeed + ":" + nonce + ":" + round)
round = 0, 1, 2, ...
f = b0/256 + b1/256^2 + b2/256^3 + b3/256^4

Each 32-byte digest supplies eight four-byte fractions in [0, 1). Streams continue with the next round counter. Without-replacement draws select floor(f × remaining pool size) and remove that item. This finite-precision reference mapping is not a general claim of perfect unbiasedness for all pool sizes. Production adapters require their own reviewed protocol and test vectors.

Developers should reuse the versioned engine in src/lib/pf/engine.ts and its adjacent tests rather than duplicate outcome logic. Its browser-safe exports include verify, sha256Hex, floats, GAMES, cardLabel and bankerDraws.

Game coverage

Reference models: Dice, Limbo, Plinko, Mines, Bingo (75-ball), Roulette (European), Keno (10 of 80), Blackjack, Poker (Texas Hold'em), Baccarat (Punto Banco), Video Poker (Draw), Slots (reference reels). These models do not imply support for every operator or every game variant.

GameWhat the reference model computesLimits
DiceRoll = floor(f × 10001) / 100, from 0.00 to 100.00.—
LimboReference multiplier mapping with a 0.99 factor.Not a general crash-game adapter.
Plinko8, 12 or 16 rows; L/R path, slot and the reference multiplier table.—
Mines1–24 unique locations on a 25-tile board, numbered 0–24.—
BingoAll 75 balls in draw order, numbered 1–75.—
Keno10 distinct numbers from 1–80.—
European roulettePocket 0–36.—
Blackjack1–8 decks, default 6; initial player/dealer hands and next 16 cards.No full decision history or settlement.
Texas Hold’em2–10 players, one deck; two hole cards each and five board cards, without burn cards.No betting or hand-ranking evaluator.
Punto Banco Baccarat1–8 decks, default 8; natural and third-card rules, totals and winner.No commission or payout calculation.
Video pokerOne deck, five initial cards and five replacement candidates.No hold decisions, hand ranking or paytable calculation.
SlotsThree or five reels, reference 32-stop strip (or operator-supplied strips with virtual-stop weights), three visible symbols per reel, paylines, paytable, wild substitution and scatter pays. Win evaluation is left-to-right per line; the exact theoretical RTP is computed analytically and shown on every verified round.No bonus rounds or free-spin state.

Custom card variants, live-dealer records, proprietary slots, external randomness and other protocols require scoped adapters. Use the operator’s exact strips, rules, payout tables and version identifiers—not the public reference model.

Audits & certification

Submit a scoped audit engagement through the customer account. The intake records the operator, HTTPS site, exact game/build version, protocol, requested S1–S7 stages and scope notes. A request is not an accepted statement of work: the reviewer still needs to agree the scope, evidence access, exclusions, deliverables and fee.

Customer endpoints: POST /api/v1/audits/engagements creates an engagement; GET /api/v1/audits/engagements lists your own engagements; GET /api/v1/audits/engagements/{engagementId} reads its evidence, stage reviews, findings and reports. Add structured evidence through POST .../{engagementId}/evidence, then ask Workers AI for a draft stage plan through POST .../{engagementId}/plan.

Evidence records are structured JSON up to 64 KiB, hashed with SHA-256; this endpoint does not upload binary files. Do not submit passwords, private keys, recovery phrases, API credentials, auth tokens or unrevealed server seeds. Source URLs are metadata references, not automatically fetched content.

Admin reviewer routes record stage results, findings, remediation and versioned report drafts. Publication requires a final status for every requested stage and no unresolved critical finding. A report is not a certificate; certification remains a separate human decision.

  • S1 — Scope, Rules & Threat Model: Signed scope document with threat model and acceptance criteria. Not automated. Carried out by an auditor during a scoped engagement.
  • S2 — Cryptographic Design & Randomness: Cryptographic design review with findings. The public verifier checks that a revealed server seed hashes to its commitment (SHA-256). Design review is manual.
  • S3 — Outcome & Payout Logic: Parity report: matched, mismatched and unverifiable rounds. The public verifier recomputes Dice, Limbo, Plinko, Mines, 75-ball Bingo, Roulette, Keno, Blackjack, Texas Hold'em, Baccarat, Video Poker and reference-reel Slots using our own published algorithm. Operator-specific algorithms require a custom adapter.
  • S4 — Statistical & Distribution Analysis: Statistical report with methods, assumptions and limitations. Not yet in the software. Performed with auditor tooling during engagements.
  • S5 — Adversarial & Abuse Testing: List of attack scenarios tested, results and unresolved risks. Not automated. AI tools may help draft test cases; humans execute and judge results.
  • S6 — Live Integrity & Evidence Reconciliation: Reconciliation report with coverage and evidence gaps. Live. Every active certificate is re-verified weekly: validity, stored-evidence integrity (each payload re-hashed against its recorded SHA-256), and stored test vectors recomputed through the engine. Results are public on the certificate page, and each certificate carries a next-review date for the quarterly human review.
  • S7 — Findings, Remediation & Certification Decision: Version-specific report and, only if requirements are met, a signed certificate. Decision is human-only. AI never declares pass or fail.

AI can prepare a plan from scope and evidence metadata; it does not perform the audit, set stage verdicts, invent evidence or issue certificates. Software subscriptions and agent usage do not purchase independent certification.

Full S1–S7 framework →

Monitoring

Monitoring is a recurring service for studios: your game pushes rounds to us, we verify each one on receipt, and scheduled runs analyze integrity over time. It is a separate product from the one-time audit — monitoring watches a live game and reports what it finds; it never grants, renews or revokes a certificate. Plans: Starter $99/month (1 game, 10,000 rounds/month, daily checks, 30-day history), Studio $299/month (5 games, 100,000 rounds/month, hourly checks, 90-day history, webhook alerts), Enterprise $999/month (unlimited games, 1,000,000 rounds/month, 15-minute checks, 1-year history, webhook and email alerts). See Monitoring and API Pricing.

How rounds reach us

Your game server — or an agent acting for it — POSTs rounds to /api/v1/monitors/{monitorId}/rounds with one of your agent keys (Bearer pfc_…). Each request carries 1–50 round objects in the same shape as verify_batch. Rounds are verified the moment they arrive; only the seed hash, a hash of the client seed, the outcome and the display string are stored — the server seed is never stored. We never connect to your game or pull data from it. Ingestion counts against the plan’s monthly rounds quota (429 rounds_quota_exceeded when used up; the quota resets on the first of each month, UTC). A paused monitor rejects ingestion with 409, and ingestion needs an active monitoring plan (402 monitoring_required).

What scheduled runs check

Runs happen on your plan’s cadence (daily / hourly / every 15 minutes) and analyze the window since the last run: failed verifications, commitment mismatches, duplicate nonces, nonce gaps, ruleset drift (rounds arriving under a different ruleset hash than the registered one), certificate expiry (linked certificates, 30 days out), and silence (no rounds in 24 hours on a monitor older than 24 hours). Each run is recorded with counts and findings, HMAC-signed when the signing key is configured, and visible on the Monitoring page. A failed check never auto-suspends anything — alerts are raised for human review. Run history is kept for the plan’s retention window (30 / 90 / 365 days); acknowledged alerts and rounds older than the window are pruned.

Alerts

One open alert per type per monitor: a new alert of a type is only raised while no unacknowledged alert of that type exists. Alerts are delivered by webhook (Studio and Enterprise, when a webhook URL is set) and by email (Enterprise). Acknowledge an alert with POST /api/v1/monitors/alerts/{alertId}/acknowledge. Two MCP tools expose monitoring to agents, free with a key: monitoring_status (monitors, last run, open alerts) and monitoring_alerts (unacknowledged alerts, newest first).

Managing monitors

Monitors are managed from the signed-in Monitoring page or the API: POST /api/v1/monitors registers a game (name, one of the 12 supported games, exact version, optional ruleset hash, optional linked certificate ID, optional webhook URL), GET /api/v1/monitors lists them with the subscription and rounds usage, GET /api/v1/monitors/{monitorId} returns runs and alerts, and PATCH /api/v1/monitors/{monitorId} updates name, version, ruleset hash, webhook URL, or pauses/resumes the monitor. Creating a monitor needs an active plan and a free game slot (402 monitor_limit when full).

Proof anchors

Every audit report, certificate and monitoring summary we publish gets its SHA-256 digest recorded on the Base blockchain (chain 8453) via our registry contract, ProvablyFairAnchors. An anchor proves a document with that exact hash existed at the recorded block time and has not changed since. It does not prove the document is true — the findings stand on their own evidence; the anchor only proves the record of them is unaltered. See Proof Anchors.

What gets anchored

Published audit reports (the first anchor is PFC-AUD-2026-001, the clicksolana.xyz audit) and every certificate record at issuance. Monitoring run summaries are queued the same way. Digests are queued when the document is published and confirmed on-chain by a scheduled job; a digest already on-chain is never re-anchored.

Verify without us

Download the document (GET /api/v1/anchors/{digest}/document), hash it with sha256sum, and compare with the digest. Then check the digest on Basescan at the registry contract address — the record, timestamp and block are public. The contract source is in the repo at contracts/ProvablyFairAnchors.sol. Note the distinction: fairness verification itself is cryptographic (HMAC-SHA256 commitments) and needs no blockchain; anchoring is a separate tamper-evidence layer.

Plans & payments

Public Verifier is free. Verifier Pro is $29 USD and Studio Integrity is $149 USD per 30-day access period. Subscriptions also raise the free API allowance (5,000 verifications a month per key on Pro, 25,000 on Studio) and include assessment suites and signed evidence exports. Payment is accepted in native ETH or official Ethereum USDC, native BTC, and native SOL. Enterprise pricing is scoped separately. Renewals require another transfer; there is no automatic wallet debit and no card checkout.

Accepted assets: native ETH and official USDC (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Ethereum mainnet; native BTC on Bitcoin; native SOL on Solana.

  • Ethereum mainnet (chain ID 1): native ETH or official USDC. Recipient: 0x6e57597d15e7069e60b2b98f136b1e109c23cbf2. Required: 12 block confirmations.
  • Bitcoin: native BTC. Recipient: 3KuaVNjxS7mFjHtANpxDuwL3E1ijnRYXX9. Required: 6 block confirmations.
  • Solana: native SOL. Recipient: 4uAobPrjpYjDJwZiiXCPfd11QvD4rJR6J3uckAZDG91Z. Required: finality.

Transfers are live. The service issues an invoice, uses a fresh Chainlink USD quote for ETH, BTC and SOL (USDC is 1:1), verifies the exact asset/amount/recipient and required confirmations, and atomically claims the transaction before unlocking access. A hash alone never unlocks a plan. Never submit private keys or seed phrases. Do not send funds before a valid invoice is issued.

Agents, API & MCP

Agent billing is separate from subscriptions. Approved prices:

  • Single bet verification: 0.002 USDC per call.
  • Batch verification: 0.001 USDC per bet.
  • Certificate status lookup: free per call.
  • Automated assessment suite: 15 USDC per run.
  • Signed evidence export: 5 USDC per report.

Prepaid minimum: 10 USDC. The API source implements agent bearer-key authentication, prepaid balance reads, multi-chain invoice creation/claim (Ethereum USDC, Bitcoin, Solana), reference verification, batch checks, prelaunch reference suites, signed reference evidence, certificate-status lookup and an MCP Streamable HTTP endpoint. The live health endpoint and payment gate determine what is actually callable in production.

Free tier

Single-bet verification is free in two ways: 10 calls per day with no key at all (per IP address), and 1000 free calls per calendar month on each agent key before per-call billing starts. Free calls return the same result plus a freeTier field showing the remaining allowance. Certificate lookups and balance checks are always free. Batch checks are paid only. Prelaunch suites and signed evidence are paid per use — or included in a subscription (Verifier Pro: 1 suite and 2 evidence exports a month; Studio Integrity: 5 suites and 10 evidence exports a month). Subscribers also get a higher free-verify allowance: 5,000 calls a month per key on Pro, 25,000 on Studio. Agent keys are free and self-serve: sign in and create one on the For Agents page (up to 5 active keys per account).

REST and MCP contract

  • REST base URL: https://api.provablyfair.click. Use Swagger / OpenAPI for request and response schemas.
  • Authentication: agent bearer key on paid verification and prepaid-credit routes. Send a unique X-Idempotency-Key on billable verification requests.
  • Available reference tools: verify_bet, verify_batch, prelaunch_suite, signed_evidence, certificate_status, credit_balance, list_games, slots_rtp, verification_stats, monitoring_status and monitoring_alerts — the no-key tools are free, and the monitoring tools are free with a key.
  • MCP endpoint: POST /mcp. The implementation supports initialize, ping, tools/list and tools/call using JSON-RPC 2.0. Paid tool calls require agent authorization.
  • Agent deposits: invoice-based, at least 10 USDC of value — USDC on Ethereum, BTC on Bitcoin, or SOL on Solana — with the required confirmations, exact recipient/amount and replay protection. Direct claims without an invoice are rejected.
  • Human customer subscriptions are separate and support ETH, USDC, BTC and SOL. They do not fund an agent balance.
  • Reference checks and signed reference evidence do not amount to a human audit or certificate. Certification requires a separately scoped engagement and human approval.

Worked example — verify a bet, no key

This exact request verifies against the live API (dice, roll 88.25). It uses the free IP tier — no key, no account:

curl -X POST https://api.provablyfair.click/api/v1/verify \
  -H "Content-Type: application/json" \
  -d '{"protocol":"pfc-hmac-v1","game":"dice","serverSeed":"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6","serverSeedHash":"c6e10d0dc8b822097c87ad06e68bd90cb71dcef5f8f54a9034ab6aeb35999afc","clientSeed":"player-seed-4815","nonce":42,"observedOutcome":{"roll":88.25}}'

The response is verified_reference_round with a freeTier field showing the remaining daily allowance. Three details matter: protocol must be exactly pfc-hmac-v1; the commitment field is serverSeedHash (64 lowercase hex characters); and observedOutcome must be the outcome object ({"roll": 88.25}) or the display string ("88.25") — a bare number does not match.

Idempotency and billing

Every paid call takes an X-Idempotency-Key header. Send a unique key per logical request: a retry with the same key returns the original result instead of charging again, and reusing a key for a different request returns 409 duplicate_request. Charges are atomic — a call that fails validation is never billed, and a call that runs out of credit returns 402 insufficient_credit without charging. Free calls need no idempotency key.

Known limitation: Cloudflare bot protection currently blocks some non-browser API clients (error 1010). Sending a standard browser User-Agent header works around it while the edge rule is being adjusted. The API itself accepts any client.

Payment collection is live. Never send funds without a server-created invoice, and check the Swagger health panel if a request reports payments disabled.

REST API reference

Base URL: https://api.provablyfair.click. All requests and responses are JSON. The authoritative schemas live in the OpenAPI spec (openapi-preview.json), and this page summarizes every endpoint by who can call it.

Public — no key, no account

MethodPathNotes
GET/healthService status: payments enabled, certificate issuance enabled, Workers AI available.
GET/api/v1/toolsAll 11 MCP tool definitions with input schemas. Also rendered live in the Try it section.
GET/api/v1/gamesThe 12-game catalogue with parameters, outcome shapes and reference RTP.
POST/api/v1/slots/rtpExact analytic RTP for a slots configuration. Empty body returns the 5-reel reference: 95.72%.
GET/api/v1/statsPublic service statistics: verification counts by outcome, batch/suite/evidence usage.
POST/api/v1/verifySingle-bet verification. Free: 10/day per IP with no key. See the worked example above and the live demo in Try it.
GET/api/v1/certificates/{certificateId}Public certificate lookup: operator, game, version, status, expiry, next review date.
GET/api/v1/certificates/{certificateId}/badgeEmbeddable SVG badge showing the live certificate status.
GET/api/v1/anchorsProof anchors: the registry contract address on Base and every anchored document digest with its status.
GET/api/v1/anchors/{digest}Check whether a SHA-256 digest is anchored on Base (live chain read when the contract is deployed).
GET/api/v1/anchors/{digest}/documentDownload the anchored document so you can hash it yourself and compare.
GET/api/v1/certificates/{certificateId}/monitoringPublic S6 monitoring history for a certificate (weekly re-verification results).
POST/api/v1/licenses/validateCheck a desktop license key (and optionally activate a machine ID). Used by the pfc CLI.

Agent key — Bearer pfc_…

Keys are free and self-serve (up to 5 per account) from the For Agents page. Send Authorization: Bearer pfc_… and a unique X-Idempotency-Key on billable calls.

MethodPathPrice
GET/api/v1/creditsFree. Prepaid USDC balance for the calling key.
POST/api/v1/credits/invoicesFree to create. Top-up invoice (min 10 USDC of value) in USDC, BTC or SOL.
POST/api/v1/credits/claimFree. Claim a paid invoice by transaction hash; balance updates after confirmations.
POST/api/v1/verify1,000 free/month per key (5,000 with Verifier Pro, 25,000 with Studio Integrity), then 0.002 USDC per call.
POST/api/v1/verify/batch0.001 USDC per round, max 50 rounds.
POST/api/v1/suites/prelaunch15 USDC flat, up to 50 reference rounds with a cross-round assessment (duplicates, nonce gaps, commitment mismatches). A reference check, not certification. Included in subscriptions: 1/month on Pro, 5/month on Studio.
POST/api/v1/evidence5 USDC. HMAC-sealed reference round report (not an independent audit certificate). Included in subscriptions: 2/month on Pro, 10/month on Studio.
POST/api/v1/monitors/{monitorId}/roundsIngest 1–50 rounds for a monitor (agent key of the monitor owner). Rounds are verified on receipt and count against the monthly monitoring quota.
POST/mcpMCP endpoint — same tools and prices as REST. See the MCP section below.

Customer session — signed-in account

Cookie session from the website sign-in; email verification is required before invoicing. These routes also check the request origin.

MethodPathNotes
POST/api/v1/auth/registerCreate an account (email + password). Verification email sent.
POST/api/v1/auth/verify-emailConfirm the email address with the verification token.
POST/api/v1/auth/resend-verificationResend the verification email.
POST/api/v1/auth/loginSign in; returns the session cookie.
GET/api/v1/auth/googleStart Google sign-in (redirects to Google).
GET/api/v1/auth/google/callbackGoogle sign-in callback; sets the session cookie.
POST/api/v1/auth/logoutEnd the session.
POST/api/v1/auth/forgot-passwordRequest a password-reset email.
POST/api/v1/auth/reset-passwordReset the password with the emailed token.
GET/api/v1/accountAccount profile and subscription status.
GET/api/v1/agentsList your agent keys and balances.
POST/api/v1/agentsCreate an agent key (max 5 active). The key is shown once.
POST/api/v1/agents/{agentId}/disableDisable one of your agent keys.
POST/api/v1/subscriptions/invoicesCreate a subscription invoice (Verifier Pro / Studio) in ETH, USDC, BTC or SOL.
POST/api/v1/subscriptions/claimClaim a paid subscription invoice by transaction hash.
POST/api/v1/licenses/invoicesCreate a desktop license invoice (Solo / Studio / Enterprise).
POST/api/v1/licenses/claimClaim a paid license invoice; the license key is returned once, in the same atomic step.
POST/api/v1/monitoring/invoicesCreate a monitoring-plan invoice (Starter / Studio / Enterprise) in ETH, USDC, BTC or SOL.
POST/api/v1/monitoring/claimClaim a paid monitoring invoice; the 30-day plan activates in the same atomic step.
POST/api/v1/monitorsRegister a game for monitoring (needs an active plan and a free game slot).
GET/api/v1/monitorsYour monitors with last run, open alerts, subscription and rounds usage.
GET/api/v1/monitors/{monitorId}One monitor with its recent runs, alerts and total rounds.
PATCH/api/v1/monitors/{monitorId}Update a monitor: name, version, ruleset hash, webhook URL, or pause/resume.
POST/api/v1/monitors/alerts/{alertId}/acknowledgeAcknowledge one of your monitoring alerts.
GET/api/v1/invoicesYour invoice history: subscriptions, licenses and monitoring plans, newest first.
GET/api/v1/licensesYour desktop licenses: machines, seats used, expiry.
POST/api/v1/licenses/{licenseId}/deactivateDeactivate a machine on one of your licenses, freeing a seat.
GET/api/v1/desktop/reportsDesktop audit reports synced from your licenses.
GET, POST/api/v1/audits/engagementsList your audit engagements, or request a new one.
GET/api/v1/audits/engagements/{engagementId}One engagement: evidence, stage reviews, findings, reports.
POST/api/v1/audits/engagements/{engagementId}/evidenceAdd structured evidence (JSON, up to 64 KiB, SHA-256 hashed). No binary uploads.
POST/api/v1/audits/engagements/{engagementId}/planAsk Workers AI for a draft S1–S7 stage plan. Planning aid only — never a verdict.

Desktop license key — X-License-Key

MethodPathNotes
POST/api/v1/desktop/planDraft an S1–S7 audit plan from scope + evidence metadata (Workers AI). Planning aid only.
POST/api/v1/desktop/reportsSync a desktop audit report to ProvablyFair.click (max 256 KiB; round counts must reconcile).

Admin — X-Admin-Token (operator only)

These routes are for ProvablyFair.click's own reviewers and operators. They are listed here so the contract is complete; they are not callable by customers.

MethodPathNotes
POST/admin/agentsMint an agent key without an owner account.
POST/admin/licensesMint a desktop license key (returned once).
POST/admin/certificatesIssue a certificate — only for an engagement with a published report.
POST/admin/certificates/{certificateId}/statusChange a certificate's status (active / expired / suspended / revoked).
POST/admin/monitoring/runRun the weekly S6 monitoring checks now, for one certificate or all active ones.
POST/admin/qa/runRun the internal QA agent over recent operations.
GET/admin/qa/latestLatest QA run summary.
POST/admin/audits/{engagementId}/stagesRecord a stage review result.
POST/admin/audits/{engagementId}/findingsRecord a finding (severity-ranked).
POST/admin/audits/{engagementId}/findings/{findingId}/statusUpdate a finding's status (e.g. fixed, accepted, disputed).
POST/admin/audits/{engagementId}/reportsDraft a versioned audit report.
POST/admin/audits/{engagementId}/reports/{reportId}/publishPublish a report. Requires a final status for every requested stage and no unresolved critical finding.

MCP server

The same verification tools are exposed over the Model Context Protocol (MCP) at POST https://api.provablyfair.click/mcp — Streamable HTTP, JSON-RPC 2.0, protocol version 2025-03-26, server name provablyfair-agent-api. A GET on the endpoint returns 405 (unsupported_transport): event streaming is not implemented, POST only.

Methods

MethodWhat it does
initializeHandshake. Returns the protocol version, capabilities (tools, listChanged false) and server info, plus an Mcp-Session-Id response header.
notifications/initializedClient acknowledgement after initialize. Returns 202 with no body.
pingLiveness check. Returns an empty result.
tools/listAll 11 tool definitions with descriptions and input schemas. Free, no key.
tools/callRun a tool. params.name is the tool name, params.arguments the tool input. Success returns isError: false with the result as a JSON text block; a tool failure returns isError: true with {"error": code, "message": …}. Unknown methods return JSON-RPC -32601 (method not found).

Tools

ToolPriceRequired arguments
verify_betFree tier, then 0.002 USDCprotocol (pfc-hmac-v1), game, serverSeed, clientSeed, nonce (≥ 0), serverSeedHash, observedOutcome
verify_batch0.001 USDC / roundrounds — array of 1–50 round objects
prelaunch_suite15 USDC flatrounds — array of 1–50 round objects
signed_evidence5 USDCSame seven fields as verify_bet
certificate_statusFreecertificateId
credit_balanceFree (key required)None
monitoring_statusFree (key required)None — lists your monitors, last run and open alerts
monitoring_alertsFree (key required)None — your unacknowledged monitoring alerts, newest first
list_gamesFree, no keyNone
slots_rtpFree, no keyNone required — optional reels (3 or 5), reelStrips, stripWeights, paylines, paytable, wild, scatter
verification_statsFree, no keyNone

Without an Authorization: Bearer pfc_… header, the three no-key tools work, and verify_bet works on the free IP tier (10/day). Paid tools without a key return 401. Note that verify_bet's observedOutcome must be the outcome object or the display string — a bare number does not match (see the worked REST example above).

Client config

Works in Claude Code and any MCP client with Streamable HTTP. Omit the headers block to use the free tier:

{
  "mcpServers": {
    "provablyfair": {
      "type": "http",
      "url": "https://api.provablyfair.click/mcp",
      "headers": { "Authorization": "Bearer pfc_YOUR_AGENT_KEY" }
    }
  }
}

Handshake example

curl -X POST https://api.provablyfair.click/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0"}}}'

→ {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-03-26",
     "capabilities":{"tools":{"listChanged":false}},
     "serverInfo":{"name":"provablyfair-agent-api","version":"0.1.0"}}}

Worked call — verify a bet over MCP

curl -X POST https://api.provablyfair.click/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"verify_bet","arguments":{"protocol":"pfc-hmac-v1","game":"dice","serverSeed":"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6","serverSeedHash":"c6e10d0dc8b822097c87ad06e68bd90cb71dcef5f8f54a9034ab6aeb35999afc","clientSeed":"player-seed-4815","nonce":42,"observedOutcome":{"roll":88.25}}}}'

The response wraps the same verified_reference_round result as the REST call, inside the MCP content array. Machine-readable docs for agents: llms.txt · llms-full.txt · OpenAPI JSON.

Errors

REST errors are JSON: {"error": {"code": "invalid_input", "message": "…"}} with the HTTP status below. MCP tool failures return the same code and message inside the result with isError: true. A failed call is never billed.

StatusCodeMeaning
400invalid_inputA required field is missing or malformed. Check the request against the OpenAPI schema.
400invalid_jsonThe request body is not valid JSON.
400unsupported_protocolprotocol is not pfc-hmac-v1.
400invalid_transactionA payment claim's transaction hash or signature is malformed for its chain.
400invalid_tier / invalid_validityUnknown license tier, or a license validity outside 1–1095 days.
401authentication_requiredNo agent key was sent on a route that needs one.
401invalid_credentialsWrong email or password on sign-in.
401license_required / invalid_licenseNo X-License-Key header, or the key is unknown.
401session_expiredThe customer session has expired — sign in again.
402insufficient_creditNot enough prepaid USDC. Top up via an invoice (min 10 USDC).
402monitoring_required / monitor_limitRound ingestion or monitor creation needs an active monitoring plan (or a free game slot on it).
403email_not_verifiedThe account's email is not verified yet — invoicing is blocked until it is.
403origin_not_allowedThe request came from an origin outside the allowlist (customer routes only).
403license_expired / license_inactiveThe license has expired, or has been suspended or revoked.
404not_foundUnknown route, certificate, or resource.
404engagement_not_found / report_not_foundThe audit engagement or report does not exist (or is not yours).
409duplicate_requestAn X-Idempotency-Key was reused for a different request. Use a fresh key.
409unconfirmedThe payment transaction has not reached the required confirmations yet. Retry with the same invoice and hash — do not pay again.
409payment_mismatch / chain_mismatch / invalid_paymentThe transaction's amount, recipient, asset or chain does not match the invoice.
409invalid_senderThe payment came from an unexpected sender (e.g. a coinbase transaction, or sender = recipient).
409machine_limitThe license has no free machine seats. Deactivate a machine from the portal first.
409report_not_publishedCertificate issuance requires a published report for the engagement.
413body_too_large / report_too_largeEvidence is capped at 64 KiB; synced desktop reports at 256 KiB.
429rate_limitedToo many requests. Back off and retry.
429free_limit_reachedThe free tier is exhausted (10/day per IP without a key). Get an agent key for 1,000 free calls a month.
429rounds_quota_exceededA monitor's monthly rounds quota is used up; it resets on the first of the month (UTC).
503oracle_unavailable / stale_oracle / oracle_disagreementThe Chainlink price feed is unreachable, stale, or disagrees with the cross-check. Invoicing pauses rather than pricing on a bad quote.
503rpc_unavailable / invalid_chain_dataThe chain RPC or explorer could not confirm the transaction. Retry later.
503ai_unavailableWorkers AI is unreachable — plan drafting is temporarily unavailable.
503stats_unavailable / upstream_unavailableA backing service is temporarily down. Retry later.

Try it

Three live panels wired to the production API at https://api.provablyfair.click. They run entirely in your browser against the same endpoints documented above — no mocks, no screenshots of responses. Errors render as the API returns them.

Verify a bet — live demo

Posts to POST /api/v1/verify on the free tier (10 calls/day per IP, no key). The form is prefilled with the documented worked example — a dice bet whose roll was 88.25. Change any character of a seed or the nonce and watch it fail; that sensitivity is the point of the protocol.

MCP tools explorer

Fetched live from GET /api/v1/tools — the same catalog the MCP server returns from tools/list. If a tool appears here, it is deployed.

Loading the live tool catalog…

Certificate status lookup

Calls the free public endpoint GET /api/v1/certificates/{certificateId} — no key, no account. No certificates have been issued yet, so until the first one is, every lookup correctly returns not_found; the panel shows the real response either way.

Desktop product

ProvablyFair Desktop is the same verification engine packaged as a local tool (@provablyfair/engine, CLI command pfc, Node 20+). It is a licensed product, distributed directly; install from the provided package per the package README. Licenses start at $299/year and are bought on-site (Solo $299, Studio $990; Enterprise is custom-priced) — pay by invoice in ETH, USDC, BTC or SOL; the key is issued the moment payment is verified. Local verification needs no key and no network: pfc verify checks one round, pfc rtp computes exact slots RTP (with an optional Monte-Carlo check), and pfc audit verifies a JSONL file of rounds and writes a report. A desktop license key (3 machines by default, 1 year) unlocks the AI connector (pfc plan drafts an S1–S7 plan from your scope and evidence metadata via Cloudflare Workers AI) and report sync (pfc audit --sync). The AI drafts plans only and never assigns verdicts. A desktop audit is a self-audit: it is not an independent certification, and certificates still require a scoped engagement, a published report and a human reviewer. See ProvablyFair Desktop.

Privacy & legal

Inputs to the public browser verifier are processed locally and are not sent to the internal Workers AI QA assistant. The internal QA agent receives operational test summaries and health metadata to help explain failures; it is not used to evaluate customer seeds or private unrevealed game data. Consent acceptance is stored locally. Hosting providers process request logs, and external font requests go to Google Fonts. Ethereum transfers, when enabled, are public blockchain records.

We do not sell personal information. Clear browser storage to remove local consent. Do not upload confidential evidence or wallet credentials through public tools. Paid-service data flows and named AI providers must be disclosed before they are introduced.

Terms · Privacy Policy · Data Disclosure

Troubleshooting

  • Commitment mismatch: check the original hash, the exact revealed seed and encoding. Never substitute a new hash to turn a failure into a match.
  • Different computed result: confirm protocol, nonce, configuration, deal ordering and recorded game version. A matching hash does not resolve a mapping mismatch.
  • Missing reveal: the round remains inconclusive. Do not infer the seed or outcome.
  • Unsupported variant: request a scoped adapter review rather than select a similar game.
  • Checkout error: do not send a second payment. Reuse the same invoice and transaction hash to resume verification.
  • Unissued certificate: a specimen or verification result is not a certificate.
  • API 1010 from a script: Cloudflare bot protection is challenging the client. Send a standard browser User-Agent header.

Keep a redacted reproducibility package: protocol/version, public commitment, permitted reveal, nonce, settings and expected outcome. Exclude credentials and unrevealed secret seeds.