Commit now, reveal to everyone later: the paid call returns a commitment sha3_256(secret||
Commit now, reveal to everyone later: the paid call returns a commitment sha3_256(secret||salt) and a commit id; GET /x402/random/reveal/{commit_id} is FREE, public and idempotent, and discloses the secret, the salt, the raw draw and the node's attestation so anyone — not just the buyer — can check the commitment. Reveal delay 0..604800s. For games, sealed-bid rounds and auditable draws. Trust model, stated plainly: the commitment binds the outcome from the moment you publish it, and the reveal proves the secret came from a node-signed draw — it does NOT prove the operator discarded no draws before committing, so publish the commitment to your players before the round.
Provider
animica.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x5D17c40FD6b119dc6006C4Ab3C20a917FCaB2aCD",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5410",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "animica:1",
"payTo": "anim1zqpsmegc0qcvzjfukm89xs0zeu3eqyyyel7kelehuszvwfarqypky2gr946ga",
"asset": "ANM",
"amount": "52626799844",
"maxTimeoutSeconds": 60
}
]Output schema
{
"animica": {
"catalog": "https://animica.dev/.well-known/x402",
"content_type": "application/json",
"currency": "USDC",
"description": "Commit now, reveal to everyone later: the paid call returns a commitment sha3_256(secret||salt) and a commit id; GET /x402/random/reveal/{commit_id} is FREE, public and idempotent, and discloses the secret, the salt, the raw draw and the node's attestation so anyone — not just the buyer — can check the commitment. Reveal delay 0..604800s. For games, sealed-bid rounds and auditable draws. Trust model, stated plainly: the commitment binds the outcome from the moment you publish it, and the reveal proves the secret came from a node-signed draw — it does NOT prove the operator discarded no draws before committing, so publish the commitment to your players before the round.",
"documentation": "https://animica.dev/x402#product-random_commit",
"name": "Commit-reveal randomness (public audit trail)",
"openapi": "https://animica.dev/x402/openapi.json",
"price": "0.005410",
"product": "random_commit",
"provider": "Animica",
"terms": {
"amount_atomic": "5410",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chain_id": 8453,
"network": "eip155:8453",
"pay_to": "0x5D17c40FD6b119dc6006C4Ab3C20a917FCaB2aCD",
"scheme": "exact"
},
"x402_version": 2
},
"bazaar": {
"discoverable": true,
"info": {
"input": {
"body": {
"memo": "commit-reveal example"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"memo": {
"description": "up to 256 printable ASCII chars, published verbatim at reveal (bind the commitment to your round/bet id)",
"type": "string"
},
"request_id": {
"description": "your own tag; mixed into the DRNG seed that produced the secret",
"type": "string"
},
"reveal_after_seconds": {
"description": "seconds until the free reveal opens, 0..604800 (default 0 = revealable immediately)",
"type": "integer"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"discovery": {
"discoverable": true,
"info": {
"entropy": {
"attested": false,
"health_passed": true,
"is_hardware": false,
"is_quantum": false,
"min_entropy_per_byte": 7.8161,
"model": "os.urandom CSPRNG",
"note": "observed on the gateway's own readiness draw, published unpaid so the trust model is knowable before purchase; the same fields ride verbatim on every paid response",
"observed_at": "2026-08-20T04:13:18.489Z",
"signer_backend": "software",
"source": "software-fallback",
"vendor": "os"
},
"input": {
"bodyFields": {
"memo": {
"description": "up to 256 printable ASCII chars, published verbatim at reveal (bind the commitment to your round/bet id)",
"required": false,
"type": "string"
},
"request_id": {
"description": "your own tag; mixed into the DRNG seed that produced the secret",
"required": false,
"type": "string"
},
"reveal_after_seconds": {
"description": "seconds until the free reveal opens, 0..604800 (default 0 = revealable immediately)",
"required": false,
"type": "integer"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"description": "commit_id, commitment, algorithm, reveal_after (unix seconds), reveal_url, source, health, attestation (the draw is NOT disclosed yet), verification, payment metadata",
"type": "json"
}
}
}
}Use it
curl
curl "https://animica.dev/x402/random/commit" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://animica.dev/x402/random/commit");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://animica.dev/x402/random/commit")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7534.json, and this resource appears in /discovery/resources and /discovery/search.