Skip to main content

random RPC Method

Returns a random number to be used as a source of entropy for random number generation by clients

Updated on
Jun 11, 2026

Parameters

object
object
REQUIRED

The random request object.

Returns

result
object

An object which contains the following fields:

random
string

A random 256-bit hex value

validated
boolean

(Optional) It indicates whether the result has been validated

status
string

The status of the request

warnings
array

(Optional) An array of warning objects, each containing the following fields. Returned at the JSON-RPC response root on some servers and omitted from the result object

id
integer

The ID of the warning

message
string

The warning message

Request
Response
1
{
2
"result": {
3
"random": "E81562AC0DB51B69754703441CC6AEB6D093A826D5AEA4600986109E8423F8F6",
4
"status": "success"
5
},
6
"warnings": [
7
{
8
"id": 2001,
9
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
10
}
11
]
12
}
1
{
2
"result": {
3
"random": "E81562AC0DB51B69754703441CC6AEB6D093A826D5AEA4600986109E8423F8F6",
4
"status": "success"
5
},
6
"warnings": [
7
{
8
"id": 2001,
9
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
10
}
11
]
12
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free