{
  "x402Version": 2,
  "id": 36486,
  "slug": "36486",
  "resource": "https://api.solgiery.com/v1/random/sample",
  "description": "Select count items as an ordered sample. replace defaults to false: each original index may occur once and count must not exceed the input length. With replace=true, draws are independent and indices may repeat. Uses the server OS CSPRNG. Returns consumed bytes for reproducible calculation, not proof of their origin. Price: 0.007 USDC per request, including the bounded batch.",
  "type": "http",
  "serviceName": "Solgiery Random",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x12fe99C184192A0d4a3C507602ad4b03AA3A6fbb",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "7000",
      "amountUsd": 0.007,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": false,
        "properties": {
          "algorithm": {
            "const": "solgiery-random-v1",
            "type": "string"
          },
          "entropy": {
            "additionalProperties": false,
            "properties": {
              "hex": {
                "maxLength": 262144,
                "pattern": "^([0-9a-f]{2})*$",
                "type": "string"
              },
              "source": {
                "const": "os-csprng",
                "type": "string"
              }
            },
            "required": [
              "source",
              "hex"
            ],
            "type": "object"
          },
          "result": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "index": {
                  "maximum": 999,
                  "minimum": 0,
                  "type": "integer"
                },
                "item": {}
              },
              "required": [
                "index",
                "item"
              ],
              "type": "object"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "algorithm",
          "result",
          "entropy"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "count": 2,
            "items": [
              "a",
              "b",
              "c"
            ],
            "replace": false
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm": "solgiery-random-v1",
            "entropy": {
              "hex": "80808080808080808080808080808080",
              "source": "os-csprng"
            },
            "result": [
              {
                "index": 1,
                "item": "b"
              },
              {
                "index": 0,
                "item": "a"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "description": "Unknown or duplicate parameters and null parameter values are rejected. JSON body: at most 65536 bytes, depth 16, and 4096 bytes per item. Repeated sample items together must fit 65536 bytes.",
                "properties": {
                  "count": {
                    "maximum": 1000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "items": {
                    "items": {},
                    "maxItems": 1000,
                    "minItems": 1,
                    "type": "array"
                  },
                  "replace": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "items",
                  "count"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "algorithm": {
                    "const": "solgiery-random-v1",
                    "type": "string"
                  },
                  "entropy": {
                    "additionalProperties": false,
                    "properties": {
                      "hex": {
                        "maxLength": 262144,
                        "pattern": "^([0-9a-f]{2})*$",
                        "type": "string"
                      },
                      "source": {
                        "const": "os-csprng",
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "hex"
                    ],
                    "type": "object"
                  },
                  "result": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "index": {
                          "maximum": 999,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "item": {}
                      },
                      "required": [
                        "index",
                        "item"
                      ],
                      "type": "object"
                    },
                    "maxItems": 1000,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "algorithm",
                  "result",
                  "entropy"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "random",
    "utilities",
    "x402",
    "bazaar"
  ],
  "sourceHost": "api.solgiery.com",
  "lastUpdated": "2026-10-10T03:11:37.888Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-10T03:11:37.439Z"
  },
  "metadata": {
    "serviceName": "Solgiery Random",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "count": 2,
              "items": [
                "a",
                "b",
                "c"
              ],
              "replace": false
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "algorithm": "solgiery-random-v1",
              "entropy": {
                "hex": "80808080808080808080808080808080",
                "source": "os-csprng"
              },
              "result": [
                {
                  "index": 1,
                  "item": "b"
                },
                {
                  "index": 0,
                  "item": "a"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "description": "Unknown or duplicate parameters and null parameter values are rejected. JSON body: at most 65536 bytes, depth 16, and 4096 bytes per item. Repeated sample items together must fit 65536 bytes.",
                  "properties": {
                    "count": {
                      "maximum": 1000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "items": {
                      "items": {},
                      "maxItems": 1000,
                      "minItems": 1,
                      "type": "array"
                    },
                    "replace": {
                      "default": false,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "count"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "const": "solgiery-random-v1",
                      "type": "string"
                    },
                    "entropy": {
                      "additionalProperties": false,
                      "properties": {
                        "hex": {
                          "maxLength": 262144,
                          "pattern": "^([0-9a-f]{2})*$",
                          "type": "string"
                        },
                        "source": {
                          "const": "os-csprng",
                          "type": "string"
                        }
                      },
                      "required": [
                        "source",
                        "hex"
                      ],
                      "type": "object"
                    },
                    "result": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "index": {
                            "maximum": 999,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "item": {}
                        },
                        "required": [
                          "index",
                          "item"
                        ],
                        "type": "object"
                      },
                      "maxItems": 1000,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "algorithm",
                    "result",
                    "entropy"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.solgiery.com",
    "manifest_name": "api.solgiery.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": {
    "algorithm": "solgiery-random-v1",
    "entropy": {
      "hex": "80808080808080808080808080808080",
      "source": "os-csprng"
    },
    "result": [
      {
        "index": 1,
        "item": "b"
      },
      {
        "index": 0,
        "item": "a"
      }
    ]
  }
}