Skip to main content

Parameters

number
Number of samples to return (default: 720)

Response

array
Array of performance sample objects
number
Slot number
number
Number of slots in the sample
number
Number of transactions in the sample
number
Sample period in seconds
number
Number of non-vote transactions

Code Examples

Basic Request

Request with Limit

Using web3.js

Notes

  1. Returns recent performance samples from the network
  2. Each sample covers a period of time (typically 60 seconds)
  3. Samples include transaction counts and slot information
  4. The response is immediate as it reads from the current state
  5. The default limit is 720 samples (approximately 12 hours)

Best Practices

  1. Use appropriate limit based on your analysis needs
  2. Cache results when appropriate to reduce RPC load
  3. Monitor for significant changes in performance
  4. Consider using websocket subscription for real-time updates
  5. Handle network errors and retry when appropriate

Common Errors

Use Cases

  1. Performance Analysis
  2. Performance Monitoring
  3. Performance History