Skip to main content
POST
Lotto Preset

Params

string
default:"polygon_mumbai"
required
The blockchain network to retrieve random numbers from. Available options are polygon_mumbai,fuji and sepolia.
string
default:"lotto"
required
The preset to be used.
string
default:"1"
required
The amount of winners you want to get.
array
required
The list of participants or options in string format. eg: [“Adam”, “Bradley”, “Charlie”, “David”, “Edward”, “Frank”]

Response

object
boolean
Indicates whether the request was successful
string
The hash of the VRF proof generated by Chainlink
string
The URL to the VRF proof event on the blockchain explorer
string
The unique request ID assigned by Chainlink
string
The random number generated by Chainlink
string
The parsed random number generated by Chainlink
string
The error message, if any
string
The URL to the transaction details on the blockchain explorer

0xCord's preset Tutorial

Learn how to integrate this preset with 0xCord