Feed updates
Crypto.NTBILL/USD.RRremovedCommodities.GOU6/USDremovedEquity.US.NIDU6/USDremovedCrypto.FOLD/USDwent liveCrypto.STONK/USDwent liveCrypto.AMC/USDwent liveCrypto.BONER/USDwent liveCrypto.PONS/USDwent liveCrypto.EHYUSD/HYUSD.RRwent liveCrypto.HYUSD/USD.RRwent liveEquity.US.BULL/USDwent liveEquity.US.CLOV/USDwent liveEquity.US.KSS/USDwent liveEquity.US.RCAT/USDwent live
View all
Developer Hub

Reveal the random value for a given sequence number and blockchain.

Reveal the random value for a given sequence number and blockchain. Given a sequence number, retrieve the corresponding random value that this provider has committed to. This endpoint will not return the random value unless someone has requested the sequence number on-chain. Every blockchain supported by this service has a distinct sequence of random numbers and chain_id. Callers must pass the appropriate chain_id to ensure they fetch the correct random number.

GET
/v1/chains/{chain_id}/revelations/{sequence}

Path Parameters

chain_id*string
sequence*integer
Formatint64
Range0 <= value

Query Parameters

encoding?|null
block_number?|
Formatint64
Range0 <= value

Response Body

application/json

text/plain

curl -X GET "https://example.com/v1/chains/string/revelations/0"
{  "value": {    "data": "string",    "encoding": "hex"  }}