{
  "x402Version": 2,
  "id": 2266,
  "slug": "2266",
  "resource": "https://api.anchor-x402.com/v1/roll",
  "description": "Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.",
  "type": "http",
  "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
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "api.anchor-x402.com",
  "lastUpdated": "2026-09-17T03:47:02.052Z",
  "quality": {
    "calls30d": 10,
    "uniquePayers30d": 6,
    "lastCalledAt": "2026-09-17T03:47:01.673Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.anchor-x402.com",
    "manifest_name": "api.anchor-x402.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}