> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xcord.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lotto Preset

> API endpoint for interacting with 0xCord's Lotto Preset

## Params

<ParamField body="network" type="string" default="polygon_mumbai" initialValue="polygon_mumbai" required>
  The blockchain network to retrieve random numbers from. Available options are
  `polygon_mumbai`,`fuji` and `sepolia`.
</ParamField>

<ParamField body="preset" type="string" default="lotto" initialValue="lotto" required>
  The preset to be used.
</ParamField>

<ParamField body="numberOfWinners" type="string" default="1" initialValue="1" required>
  The amount of winners you want to get.
</ParamField>

<ParamField body="list" type="array" required>
  The list of participants or options in string format. eg: \["Adam", "Bradley",
  "Charlie", "David", "Edward", "Frank"]
</ParamField>

## Response

<ResponseField name="data" type="object">
  <ResponseField name="success" type="boolean">
    Indicates whether the request was successful
  </ResponseField>

  <ResponseField name="vrfv2Hash" type="string">
    The hash of the VRF proof generated by Chainlink
  </ResponseField>

  <ResponseField name="vrfv2EventHash" type="string">
    The URL to the VRF proof event on the blockchain explorer
  </ResponseField>

  <ResponseField name="requestId" type="string">
    The unique request ID assigned by Chainlink
  </ResponseField>

  <ResponseField name="result" type="string">
    The random number generated by Chainlink
  </ResponseField>

  <ResponseField name="parsedResult" type="string">
    The parsed random number generated by Chainlink
  </ResponseField>

  <ResponseField name="err" type="string">
    The error message, if any
  </ResponseField>

  <ResponseField name="url" type="string">
    The URL to the transaction details on the blockchain explorer
  </ResponseField>
</ResponseField>

<Card title="0xCord's preset Tutorial" href="/infrastructure/chainlink-presets">
  Learn how to integrate this preset with 0xCord
</Card>
