Skip to main content

random

POST

Returns a random 256-bit value that can be used for random number generation.Clients can use it as a source of entropy.
Responses
randomstring
A randomly generated 256-bit value expressed as a hex string.
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://xrpl-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"method": "random",
"params": []
}'