> ## 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.

# Coinflip Preset

> API endpoint for interacting with 0xCord's Coinflip 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="coinflip" initialValue="coinflip" required>
  The preset to be used.
</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>
