Home

Filecoin.ChainGetRandomnessFromBeacon

POST
https://fil.nownodes.io/rpc/v0

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns randomness derived from the drand beacon at the specified epoch. The randomness is computed by hashing the beacon entry with a domain separation tag (personalization) and optional additional entropy. This is used for various protocol operations such as sector sealing and proof generation.

Body

application/json
jsonrpcstringrequired

JSON-RPC protocol version. Must always be "2.0".

methodstringrequired

The name of the JSON-RPC method to invoke.

paramsArray<Array<object> | integer | integer | string>required

Ordered list of parameters: tipset key, domain separation tag, epoch, and additional entropy.

Show child attributes
One of
Array<object>
Show child attributes
/string

CID of a block in the tipset.

Domain separation tag (DomainSeparationTag) - an integer that identifies the purpose of the randomness request to prevent cross-protocol attacks.

integer

The chain epoch at which to sample the beacon randomness.

integer

Base64-encoded additional entropy bytes to mix into the randomness derivation. Provides per-use uniqueness.

string
idintegerrequired

An identifier for this JSON-RPC request.

Response

200OK

Successful response containing the derived randomness value.