Skip to main content

rng.dev Documentation

1-second public randomness beacon backed by 8 blockchains


What is rng.dev?

rng.dev is a public random number beacon that:

  • Generates new randomness every second
  • Fetches entropy from 8 independent blockchains (block hashes + transaction IDs)
  • Requires $80 billion+ to compromise (economic security)
  • Allows anyone to independently verify any round
  • Is fully open source — self-host or use the API

Sources

ChainFinalityRole
Aptos~900msFresh each round
Arbitrum~250msFresh each round
Base~2sFresh each round
Bitcoin~60 minStable base entropy
Cardano~20sStable base entropy
Ethereum~15 minStable base entropy
Solana~400msFresh each round
Sui~400msFresh each round

Fast-finality chains (Aptos, Arbitrum, Base, Solana, Sui) provide fresh data every second. Slower chains provide stable base entropy. Transaction IDs provide information-theoretic unpredictability.

Key Properties

PropertyDescription
TransparentAll inputs are public blockchain data
Multi-sourceNo single point of failure or manipulation
VerifiableAnyone can recompute any historical round
Open sourceFork and run your own beacon

Documentation

Getting Started

API Reference

Security

Self-Hosted


Quick Example

# Get current random value
curl https://rng.dev/api/v1/current

# Response
{
"round": 12345678,
"output_hash": "a3f2e8c9d1b4a5c6d7e8f9...",
"die_value": 4,
"generated_at": "2026-03-09T15:00:00Z",
"status": "complete",
"sources_available": 8
}

API Access

TierLimit
Unauthenticated100/day
Authenticated10,000/day

Sign in with Google or GitHub to get an API key. Self-hosted is always free.

Open Source

rng.dev is open source under MIT license.

GitHub: github.com/rngdev/beacon

Contact