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

# getRecentPrioritizationFees on Solana

> Call getRecentPrioritizationFees on Solana via GoldRush JSON-RPC. Returns recent per-compute-unit prioritization fees. Endpoint, parameters, return values, and code examples.

<Card title="0.01 credits per call" icon="coins" />

`getRecentPrioritizationFees` on **Solana**: Returns recent per-compute-unit prioritization fees.

## Endpoint

```
https://rpc.goldrushdata.com/v1/solana-mainnet
```

Authenticate with `Authorization: Bearer <GOLDRUSH_API_KEY>`. See [authentication](/goldrush-json-rpc/authentication).

## Parameters

| Name        | Type            | Required | Description                                                                                      | Example                                            |
| ----------- | --------------- | -------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
| `addresses` | `array<string>` | no       | Up to 128 base-58 account addresses; fees are scoped to slots where these accounts were written. | `["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]` |

## Returns

`array<object>`: Array of `{slot, prioritizationFee}` for recent slots.

```json theme={null}
[{"slot":372877170,"prioritizationFee":0},{"slot":372877171,"prioritizationFee":12000}]
```

## Examples

<CodeGroup>
  ```bash curl theme={null}
  curl https://rpc.goldrushdata.com/v1/solana-mainnet \
    -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getRecentPrioritizationFees",
      "params": [["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]]
    }'
  ```

  ```typescript @solana/kit theme={null}
  import {
    createDefaultRpcTransport,
    createSolanaRpcFromTransport,
  } from "@solana/kit";

  const transport = createDefaultRpcTransport({
    url: "https://rpc.goldrushdata.com/v1/solana-mainnet",
    headers: { Authorization: `Bearer ${process.env.GOLDRUSH_API_KEY}` },
  });
  const rpc = createSolanaRpcFromTransport(transport);

  const result = await rpc.getRecentPrioritizationFees(["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]).send();
  console.log(result);
  ```

  ```python python theme={null}
  import os
  import requests

  resp = requests.post(
      "https://rpc.goldrushdata.com/v1/solana-mainnet",
      headers={
          "Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}",
          "Content-Type": "application/json",
      },
      json={"jsonrpc": "2.0", "id": 1, "method": "getRecentPrioritizationFees", "params": [["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]]},
  )
  print(resp.json()["result"])
  ```
</CodeGroup>

## Errors

Standard JSON-RPC errors: `-32600` invalid request, `-32601` method not found, `-32602` invalid params.

## Related Network info methods on Solana

* [`getEpochInfo` on Solana](/api-reference/json-rpc/solana/getepochinfo)
* [`getEpochSchedule` on Solana](/api-reference/json-rpc/solana/getepochschedule)
* [`getFeeForMessage` on Solana](/api-reference/json-rpc/solana/getfeeformessage)
* [`getMinimumBalanceForRentExemption` on Solana](/api-reference/json-rpc/solana/getminimumbalanceforrentexemption)
* [`getGenesisHash` on Solana](/api-reference/json-rpc/solana/getgenesishash)
