DocsAPI reference
GET /get-random
Base URL: https://vrf-core-production.up.railway.app/
What it does
Generates:
- a seed (32 bytes, hex)
- a VRF output (hex, produced by the core VRF implementation)
- optionally a public key and a commitment
This endpoint is useful for off-chain randomness experiments and proof verification with /verify-random.
It is not the same format as the on-chain commit/reveal payloads (use GET /payloads for that).
Query parameters
seed(optional, hex, 32 bytes): if provided and valid, it will be used; otherwise the server generates a random 32-byte seed.proof(optional, boolean): Iftrue, includepublic_key.commit(optional, boolean): Iftrue, includecommitment.
Example
curl -s "https://vrf-core-production.up.railway.app/get-random?proof=true&commit=true"Response
{
"seed": "<hex>",
"randomness": "<hex>",
"public_key": "<hex>",
"commitment": "<hex>"
}Field notes
public_keyis included only whenproof=true.commitmentis included only whencommit=true./commithere is sha256(seed) (notsha256(seed || salt)used by the on-chain contract workflow).