POSTrandom

XRP Ledger Mainnethttps://xrpl-mainnet.nodit.io/

Returns a random 256-bit value that can be used for random number generation. Clients can use it as a source of entropy.

Request Body
methodstringrequired
paramsobject[]required

This method takes no parameters. Pass an empty array.

Responses
randomstring

A randomly generated 256-bit value expressed as a hex string.

X-API-KEY
RequestCU10
cURL
curl -X POST "https://xrpl-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "method": "random",
  "params": []
}'
Response
Example · 200
{
  "result": {
    "random": "8ED765AEBBD6767603C2C9375B2679AEC76E6A8133EF59F04F9FC1AAA70E41AF"
  }
}