About

Provides documentation of API endpoint for getting randomness.

Tutorial

The following is an example of how to get a public random hex value.

Authentication

Make sure you provide an API in the header.

Get public randomness

Send the following request:

GET {{api-url}}/public/randomness/results

You should get the following similar response:

{
    "statusCode": 200,
    "body": {
        "request": {
            "request_uuid": "c6f9c441-446d-4d07-bc11-1b5d868bb942",
            "request_name": "pub_rand",
            "request_verb": "GET",
            "request_status": {
                "status_code": 0,
                "request_status": "PENDING"
            },
            "response_eta": "2022-12-30 14:21:14",
            "created_at": "2022-12-30 10:21:14",
            "satellite_id": "crypto1"
        }
    }
}

Note that the status_name is PENDING. This is because the command has not yet been sent to the satellite and is queued for the next visibility window indicated by response_eta.

You can check the status by using the request_uuid obtained from the store command to check if it has been sent off:

GET {{api-url}}/queue/request?=request_id=c6f9c441-446d-4d07-bc11-1b5d868bb942

You should get the following response:

When the request status has changed to SENT, it can no longer be deleted. Once it is READY, the response_payload will be populated and the command can be archived.

You should get the following response or similar once when the request status is READY:

Last updated