{
  "x402Version": 2,
  "id": 27179,
  "slug": "27179",
  "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",
  "serviceName": "Roll",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1780027237/bazaar-icons/c4def16dea5cc5aa.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "6apuZvJQ51Led9iEjnHw6f5jfnXL4qjt8S1h58PeXzuR",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6",
      "asset": "0x431D5dfF03120AFA4bDf332c61A6e1766eF37BDB",
      "amount": "100000000000000000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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": {
                "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"
      }
    },
    "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": [
    "rng",
    "vrf",
    "random",
    "gaming",
    "signed",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "api.anchor-x402.com",
  "lastUpdated": "2026-10-12T15:24:21.88Z",
  "quality": {
    "calls30d": 10,
    "uniquePayers30d": 6,
    "lastCalledAt": "2026-10-12T15:24:21.477Z"
  },
  "metadata": {
    "serviceName": "Roll",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1780027237/bazaar-icons/c4def16dea5cc5aa.png",
    "extensions": {
      "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": {
                  "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"
        }
      },
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "commitment": null,
      "count": 0,
      "domain": "string",
      "input_hash": "string",
      "label": null,
      "range": [
        0
      ],
      "result": [
        0
      ],
      "result_hash": "string",
      "scheme": "string",
      "signature": "string",
      "signer": "string"
    },
    "type": "string"
  }
}