POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getRecentPerformanceSamples",
  "params": [
    5
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    {}
  ]
}

Solana getRecentPerformanceSamples method

The Solana getRecentPerformanceSamples method returns recent performance samples.

This method provides detailed information about the node’s recent performance, including the number of slots and blocks processed, and the number of slots skipped. It is useful for monitoring the node’s performance.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • limit — (optional) the maximum number of performance samples to return. If not provided, the method will return all available performance samples.

Response

  • value — an array of performance sample objects, each containing:
    • numSlots — the number of slots processed.
    • numBlocks — the number of blocks processed.
    • numSkipped — the number of slots skipped.

Use case

A practical use case for getRecentPerformanceSamples is to monitor the node’s performance. This can be useful for network monitoring tools or other applications that need to display or make use of this information.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:getRecentPerformanceSamples
params
any[]

Response

200 - application/json
Recent performance samples details
jsonrpc
string
id
integer
result
object[]