Skip to main content
POST
nDice 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:"nDice"
required
The preset to be used.
string
default:"20"
required
The amount of faces the dice has.
string
default:"10"
required
The amount of dice you want to roll.

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