getRecentPerformanceSamples

getRecentPerformanceSamples RPC Method

post

Returns a list of recent performance samples in reverse slot order (most recent first). Performance samples are collected every 60 seconds and provide detailed metrics about network activity including transaction counts, slot progression, and timing information.

Each sample represents a 60-second window of network activity and includes:

  • Total number of transactions processed

  • Number of non-vote transactions (user-initiated transactions)

  • Number of slots that occurred during the sample period

  • The slot number when the sample was taken

Authorizations
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getRecentPerformanceSamplesPossible values:
paramsinteger[] · max: 1Optional

Method parameters (optional):

  1. Number of samples to return (optional, maximum 720)
Example: 60
Responses
200
Successful Response
application/json
post
curl -X POST https://public.rpc.solanavibestation.com \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getRecentPerformanceSamples",
    "params": [10]
  }'
{
  "jsonrpc": "2.0",
  "result": [
    {
      "slot": 348125,
      "numTransactions": 2847,
      "numSlots": 150,
      "samplePeriodSecs": 60,
      "numNonVoteTransactions": 1245
    },
    {
      "slot": 347975,
      "numTransactions": 2156,
      "numSlots": 147,
      "samplePeriodSecs": 60,
      "numNonVoteTransactions": 892
    },
    {
      "slot": 347828,
      "numTransactions": 3021,
      "numSlots": 149,
      "samplePeriodSecs": 60,
      "numNonVoteTransactions": 1789
    }
  ],
  "id": 1
}

Last updated