{
  "x402Version": 2,
  "id": 38052,
  "slug": "38052",
  "resource": "https://wallet-services-poc-clean-mainnet.3hz-services.workers.dev/verified-random",
  "description": "Cryptographically verifiable random integer generated from the public drand Quicknet randomness beacon. Choose inclusive min and max values. The response includes the drand round, randomness and signature so the result can be independently checked.",
  "type": "http",
  "serviceName": "3HZ Verified Random Integer",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xEb0f642c1B71Ec3b3594303de1D09EA2532B0f5e",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "example": {
        "properties": {
          "algorithm": {
            "type": "string"
          },
          "chain_hash": {
            "type": "string"
          },
          "fetched_at": {
            "type": "string"
          },
          "max": {
            "type": "integer"
          },
          "min": {
            "type": "integer"
          },
          "randomness": {
            "type": "string"
          },
          "round": {
            "type": "integer"
          },
          "signature": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "value": {
            "type": "integer"
          }
        },
        "required": [
          "value",
          "min",
          "max",
          "round",
          "randomness",
          "signature",
          "source",
          "chain_hash",
          "algorithm",
          "fetched_at"
        ],
        "type": "object"
      },
      "type": {
        "const": "json",
        "type": "string"
      }
    },
    "required": [
      "type",
      "example"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "max": 100,
            "min": 1
          },
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm": "value = min + (randomness mod (max-min+1))",
            "chain_hash": "52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971",
            "fetched_at": "2026-09-17T09:00:00.000Z",
            "max": 100,
            "min": 1,
            "randomness": "b5b9f9cd19fdebe3d36edd5f18d8de507f3d66809e8bb40aa7cd3cba0d086dcd",
            "round": 32275886,
            "signature": "865671cf8df1a34d9e2fbc98f5dafb1cfda0d3fd0c2053a8eca1ab99a1f99361b3b9ee290c6038f7ddb4996504accf6b",
            "source": "drand Quicknet",
            "value": 78
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": false,
                "properties": {
                  "max": {
                    "default": 100,
                    "description": "Inclusive maximum integer",
                    "type": "integer"
                  },
                  "min": {
                    "default": 1,
                    "description": "Inclusive minimum integer",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "additionalProperties": false,
            "properties": {
              "example": {
                "properties": {
                  "algorithm": {
                    "type": "string"
                  },
                  "chain_hash": {
                    "type": "string"
                  },
                  "fetched_at": {
                    "type": "string"
                  },
                  "max": {
                    "type": "integer"
                  },
                  "min": {
                    "type": "integer"
                  },
                  "randomness": {
                    "type": "string"
                  },
                  "round": {
                    "type": "integer"
                  },
                  "signature": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "value": {
                    "type": "integer"
                  }
                },
                "required": [
                  "value",
                  "min",
                  "max",
                  "round",
                  "randomness",
                  "signature",
                  "source",
                  "chain_hash",
                  "algorithm",
                  "fetched_at"
                ],
                "type": "object"
              },
              "type": {
                "const": "json",
                "type": "string"
              }
            },
            "required": [
              "type",
              "example"
            ],
            "type": "object"
          }
        },
        "required": [
          "input",
          "output"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "random",
    "randomness",
    "verified-random",
    "drand",
    "cryptographic",
    "bazaar"
  ],
  "sourceHost": "wallet-services-poc-clean-mainnet.3hz-services.workers.dev",
  "lastUpdated": "2026-09-17T08:26:05.17Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-17T08:26:04.902Z"
  },
  "metadata": {
    "serviceName": "3HZ Verified Random Integer",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "max": 100,
              "min": 1
            },
            "type": "http"
          },
          "output": {
            "example": {
              "algorithm": "value = min + (randomness mod (max-min+1))",
              "chain_hash": "52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971",
              "fetched_at": "2026-09-17T09:00:00.000Z",
              "max": 100,
              "min": 1,
              "randomness": "b5b9f9cd19fdebe3d36edd5f18d8de507f3d66809e8bb40aa7cd3cba0d086dcd",
              "round": 32275886,
              "signature": "865671cf8df1a34d9e2fbc98f5dafb1cfda0d3fd0c2053a8eca1ab99a1f99361b3b9ee290c6038f7ddb4996504accf6b",
              "source": "drand Quicknet",
              "value": 78
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": false,
                  "properties": {
                    "max": {
                      "default": 100,
                      "description": "Inclusive maximum integer",
                      "type": "integer"
                    },
                    "min": {
                      "default": 1,
                      "description": "Inclusive minimum integer",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "additionalProperties": false,
              "properties": {
                "example": {
                  "properties": {
                    "algorithm": {
                      "type": "string"
                    },
                    "chain_hash": {
                      "type": "string"
                    },
                    "fetched_at": {
                      "type": "string"
                    },
                    "max": {
                      "type": "integer"
                    },
                    "min": {
                      "type": "integer"
                    },
                    "randomness": {
                      "type": "string"
                    },
                    "round": {
                      "type": "integer"
                    },
                    "signature": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "value": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "value",
                    "min",
                    "max",
                    "round",
                    "randomness",
                    "signature",
                    "source",
                    "chain_hash",
                    "algorithm",
                    "fetched_at"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "json",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "example"
              ],
              "type": "object"
            }
          },
          "required": [
            "input",
            "output"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "wallet-services-poc-clean-mainnet.3hz-services.workers.dev",
    "manifest_name": "wallet-services-poc-clean-mainnet.3hz-services.workers.dev",
    "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": {
    "algorithm": "value = min + (randomness mod (max-min+1))",
    "chain_hash": "52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971",
    "fetched_at": "2026-09-17T09:00:00.000Z",
    "max": 100,
    "min": 1,
    "randomness": "b5b9f9cd19fdebe3d36edd5f18d8de507f3d66809e8bb40aa7cd3cba0d086dcd",
    "round": 32275886,
    "signature": "865671cf8df1a34d9e2fbc98f5dafb1cfda0d3fd0c2053a8eca1ab99a1f99361b3b9ee290c6038f7ddb4996504accf6b",
    "source": "drand Quicknet",
    "value": 78
  }
}