Home

Filecoin.ChainGetRandomnessFromTickets

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 chain tickets at the specified epoch. Ticket-based randomness uses the VRF ticket from block headers as the entropy source. The randomness is mixed with a domain separation tag and optional additional entropy for protocol-specific use.

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) integer.

integer

The chain epoch at which to sample the ticket randomness.

integer

Base64-encoded additional entropy bytes.

string
idintegerrequired

An identifier for this JSON-RPC request.

Response

200OK

Successful response containing the derived randomness value.