Cryptosat
WebsiteBlogSatellite Tracking
  • Cryptosat
    • 🛰️Satellite tracking
    • 📄SpaceTEE paper
    • Contribution to the Ethereum KZG Ceremony
      • Cryptosat KZG Operation Tracker
      • Crypto2 contribution output
      • Contribution verification
  • Cryptosim
    • Cryptosim
    • Asynchronous API
    • Use-case examples
    • Open-source contribution
  • 🗳️Private Voting
    • Private Voting on Snapshot X
    • Private Voting Contract
    • Browser Side Encryption
  • 🎲random-beacon
    • Verifiable Random Beacon
    • Using the random beacon on-chain
  • API documentation
    • Message Signing
    • Authentication
    • Randomness API
      • Tutorial
      • API reference
    • Queue API
      • API reference
        • Queue
          • Request
          • Requests
    • Public randomness SAPI
      • About
      • API reference
        • Public randomness
          • Result
    • FROST API
      • About
      • API reference
        • Frost
          • Partial sign
          • Private key
      • Specification
    • Satellite Public Keys
  • ⏳Time-based Primitives
    • ⌚Time-based primitives and delay-encryption
    • ⚛️Using Delay Encryption for Atomic Swaps
  • Flastsat Environment
    • Overview
    • Access and Control
    • Crypto Engine Specs
    • Power API
Powered by GitBook
On this page
  • Tutorial
  • Authentication
  • Get public randomness
  1. API documentation
  2. Randomness API

Tutorial

Provides documentation of API endpoint for getting randomness.

PreviousRandomness APINextAPI reference

Last updated 1 year ago

Tutorial

The following is an illustrative example of generating an array of three-digit random numbers.

Authentication

Make sure you provide an.

Get public randomness

Send the following request:

GET

You should get the following similar response:

{
    "random_numbers": [
        0.548,
        0.361,
        0.74
    ]
}

Note that the num query parameter corresponds to the desired amount of generated random numbers.

API in the header
https://api.cryptosat.io/api/randomness?num=3