Cluster & Node
getRecentPerformanceSamples
Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds.
Parameters
limitusize optional Number of samples to return (maximum 720).
Result
arrayArray of objects with slot, numTransactions, numSlots, and samplePeriodSecs.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPerformanceSamples",
"params": [4]
}'Response
JSON{
"jsonrpc": "2.0",
"result": [
{
"numSlots": 126,
"numTransactions": 992,
"numNonVoteTransactions": 10,
"samplePeriodSecs": 60,
"slot": 348125
},
{
"numSlots": 126,
"numTransactions": 984,
"numNonVoteTransactions": 8,
"samplePeriodSecs": 60,
"slot": 347999
}
],
"id": 1
}