getRecentPerformanceSamples | Solana

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.

Try the getRecentPerformanceSamples RPC method yourself

Language
Click Try It! to start a request and see the response here!