Verifiable RNG — cryptographically-random integer(s) signed by the treasury key
Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.
1000 (raw units)
price
10
calls / 30d
6
unique payers
2026-09-17
updated
Provider
api.anchor-x402.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "6apuZvJQ51Led9iEjnHw6f5jfnXL4qjt8S1h58PeXzuR",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6",
"asset": "0x431D5dfF03120AFA4bDf332c61A6e1766eF37BDB",
"amount": "100000000000000000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "gaming",
"description": "Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.",
"discoverable": true,
"info": {
"input": {
"body": {
"count": 1,
"high": 100,
"label": "treasure_drop_42",
"low": 1
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"commitment": null,
"count": 1,
"domain": "anchor-x402/roll/v1",
"input_hash": "f4a1c5e3b9d8a2e0c7b4f6d9e1a3c8b5f7d2e4a9c1b6e8f3d5a7c2b4e9f1d6a8",
"label": "treasure_drop_42",
"range": [
1,
100
],
"result": [
47
],
"result_hash": "8a6d1f9e4b2c7a3e5f0c9b8a4d2f6e1c3b7a5f9d2e8c4b6a1f3e7d5c9b2a4f6e",
"scheme": "eip191",
"signature": "0x6b3e2a7c…",
"signer": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6"
},
"type": "json"
}
},
"name": "Roll",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"commitment": {
"description": "Optional 32-byte hex pre-commitment from the caller.",
"type": "string"
},
"count": {
"default": 1,
"description": "How many integers to sample. 1-100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"high": {
"description": "Inclusive high bound. Must be >= low.",
"type": "integer"
},
"label": {
"description": "Optional caller tag, included in the signed payload.",
"maxLength": 200,
"type": "string"
},
"low": {
"description": "Inclusive low bound of the integer range.",
"type": "integer"
}
},
"required": [
"low",
"high"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_kxz79e8i"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://api.anchor-x402.com/v1/roll" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.anchor-x402.com/v1/roll");
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://api.anchor-x402.com/v1/roll")
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/2266.json, and this resource appears in /discovery/resources and /discovery/search.