Nebula VRF
DocsAPI reference

GET /payloads

Base URL: https://vrf-core-production.up.railway.app/

What it does

Generates a payload bundle suitable for Stellar smart contract commit + reveal:

  • seed
  • salt
  • commitment = sha256(seed || salt) (32 bytes)
  • pubkey (G1, 96 bytes, uncompressed)
  • signature (G2, 192 bytes, uncompressed)

Outputs both:

  • hex (useful for CLI/debugging)
  • base64 (required by Stellar Lab for Bytes/BytesN)

Query parameters

  • seed_len (optional, integer): default 8
  • salt_len (optional, integer): default 8

Example

curl -s "https://vrf-core-production.up.railway.app/payloads?seed_len=8&salt_len=8"

Response shape

{
  "hex": {
    "seed": "...",
    "salt": "...",
    "commitment": "...",
    "pubkey": "...",
    "signature": "..."
  },
  "base64": {
    "seed": "...",
    "salt": "...",
    "commitment": "...",
    "pubkey": "...",
    "signature": "..."
  }
}

On this page