getRecentPerformanceSamples - Solana

getRecentPerformanceSamples. Provides recent performance samples, including transaction and slot statistics

getRecentPerformanceSamples - solana [Value: 8CU]
Provides recent performance samples, including transaction and slot statistics
Use cases

Use cases

  • Retrieve recent performance samples for Solana network analysis
  • Monitor performance metrics to assess network health
  • Analyze performance data for optimization strategies
Constraints

Constraints

  • Limited to recent performance sample data
  • Dependent on real-time data availability
  • API rate limits may restrict data access
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0", "id":1, "method":"getRecentPerformanceSamples", "params": [4]}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": [
    {
      "slot": 98123569,
      "numTransactions": 5000,
      "numSlots": 100,
      "samplePeriodSecs": 60
    },
    {
      "slot": 98123568,
      "numTransactions": 4500,
      "numSlots": 100,
      "samplePeriodSecs": 60
    },
    {
      "slot": 98123567,
      "numTransactions": 4000,
      "numSlots": 100,
      "samplePeriodSecs": 60
    },
    {
      "slot": 98123566,
      "numTransactions": 3500,
      "numSlots": 100,
      "samplePeriodSecs": 60
    }
  ],
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
limitstring
Specifies the number of samples to return, with a maximum limit of 720

Response

200
A JSON object containing statistics for the specified sample period.

Response params

object
idinteger
jsonrpcstring
resultstring
object
numNonVoteTransactionsinteger
The count of non-vote transactions during the sample period.
numSlotsinteger
The number of slots included in the sample.
numTransactionsinteger
The total number of transactions in the sample period.
samplePeriodSecsinteger
The duration of the sample window in seconds.
slotinteger
The slot number when the sample was taken.