> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getRecentPerformanceSamples

> Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getRecentPerformanceSamples" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[5]} placeholder="[5]" required>
  The parameters for method getRecentPerformanceSamples: \[samples].

  Positional parameters for <code>getRecentPerformanceSamples</code>:

  <ul>
    <li><code>params\[]</code>: Number of samples to return.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of performance sample objects representing validator activity during sample periods.

  <Expandable title="items">
    <ResponseField name="items[]" type="object">
      Performance sample object.

      <Expandable title="properties">
        <ResponseField name="slot" type="integer">
          Slot in which the sample was taken.
        </ResponseField>

        <ResponseField name="numTransactions" type="integer">
          Number of transactions processed during the sample period.
        </ResponseField>

        <ResponseField name="numSlots" type="integer">
          Number of slots completed during the sample period.
        </ResponseField>

        <ResponseField name="samplePeriodSecs" type="integer">
          Duration of the sample period in seconds.
        </ResponseField>

        <ResponseField name="numNonVoteTransactions" type="integer">
          Number of non-vote transactions processed during the sample period (available from Solana v1.15). To compute number of voting transactions: numTransactions - numNonVoteTransactions.
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getRecentPerformanceSamples",
      "params": [
        5
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      {
        "slot": 348125,
        "numTransactions": 126,
        "numSlots": 126,
        "samplePeriodSecs": 60,
        "numNonVoteTransactions": 1
      },
      {
        "slot": 347999,
        "numTransactions": 126,
        "numSlots": 126,
        "samplePeriodSecs": 60,
        "numNonVoteTransactions": 1
      }
    ]
  }
  ```
</ResponseExample>
