Api Endpoint

Roll

Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.

Open interactive test console

Offering

Provider
api.anchor-x402.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Security
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.anchor-x402.com/v1/roll
MIME type
Not provided
First seen
2026-10-16T01:50:06.715Z
Last seen
Tags
rng, vrf, Random, Gaming, signed

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.001 USDC
Atomic price: 1000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
1000 atomic units
Atomic price: 1000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Payment option 4
100000000000000000 atomic units
Atomic price: 100000000000000000 · Network: eip155:137 · Asset: 0x431D5dfF03120AFA4bDf332c61A6e1766eF37BDB · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "payTo": "6apuZvJQ51Led9iEjnHw6f5jfnXL4qjt8S1h58PeXzuR"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "1000",
    "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x431D5dfF03120AFA4bDf332c61A6e1766eF37BDB",
    "amount": "100000000000000000",
    "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6"
  }
]

Observed health

Status
Reachable
Latest latency
30 ms
Average latency
139 ms
HTTP status
405
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 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": {
          "properties": {
            "commitment": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "count": {
              "type": "integer"
            },
            "domain": {
              "const": "anchor-x402/roll/v1",
              "type": "string"
            },
            "input_hash": {
              "type": "string"
            },
            "label": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "range": {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "result": {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "result_hash": {
              "type": "string"
            },
            "scheme": {
              "const": "eip191",
              "type": "string"
            },
            "signature": {
              "type": "string"
            },
            "signer": {
              "type": "string"
            }
          },
          "required": [
            "range",
            "count",
            "commitment",
            "label",
            "result",
            "input_hash",
            "result_hash",
            "signature",
            "signer",
            "scheme",
            "domain"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}