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

# getRecentPrioritizationFees

> Returns a list of recent prioritization fees from recent blocks

## Parameters

<ParamField query="addresses" type="array" optional>
  An array of account addresses (as base-58 encoded strings). If provided, the response will be filtered to only include prioritization fees paid by one of the addresses.
</ParamField>

## Response

<ResponseField name="result" type="array">
  <Expandable title="result elements">
    <ResponseField name="slot" type="number">
      The slot in which the fee was observed
    </ResponseField>

    <ResponseField name="prioritizationFee" type="number">
      The fee amount in micro-lamports (LAMPORTS\_PER\_SOL/1000000)
    </ResponseField>
  </Expandable>
</ResponseField>

## Code Examples

### Basic Request

```bash theme={null}
curl http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY -X POST -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getRecentPrioritizationFees",
  "params": [
    ["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]
  ]
}'
```

### Using web3.js

```typescript theme={null}
import { Connection } from '@solana/web3.js';

const connection = new Connection('http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY');
const address = 'CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY';
const fees = await connection.getRecentPrioritizationFees([address]);
console.log(fees);
```

### Using Python

```python theme={null}
from solana.rpc.api import Client

client = Client("http://fra.rpc.orbitflare.com?api_key=YOUR-API-KEY")
address = "CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"
response = client.get_recent_prioritization_fees([address])
print(response)
```

## Notes

1. Returns a list of recent prioritization fees from blocks
2. Useful for estimating fees for priority transactions
3. Fees are reported in micro-lamports (LAMPORTS\_PER\_SOL/1000000)
4. If addresses parameter is provided, results are filtered to those accounts
5. The response can be used to calculate appropriate prioritization fees

## Best Practices

1. Use this method to determine appropriate priority fees during network congestion
2. Filter by specific addresses if you only care about fees paid by certain accounts
3. Calculate an appropriate fee based on average or percentile of recent fees
4. Refresh fee data frequently during high network activity
5. Handle network errors and retry when appropriate
