# GetPriorityFeeStream

{% hint style="warning" %}
Be aware that using a suggested priority fee does not guarantee your transaction will be included in the future slot.
{% endhint %}

### Method: `subscribe`

### Primary Parameter: `GetPriorityFeeStream`

### Additional Parameters:

<table><thead><tr><th width="179.32569366693275">Parameter</th><th width="139.23125339579434">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>project</code></td><td>enum</td><td>Define which project to fetch the recent priority fee. Potential value: <code>"P_JUPITER"</code>, <code>"P_RAYDIUM"</code></td></tr><tr><td><code>percentile</code></td><td>double</td><td><strong>OPTIONAL.</strong> Define how much percentile of the previous <strong>100</strong> slot's priority fee. Type <code>90</code>, if you want the top 90% percentile. Default <code>55</code>.</td></tr></tbody></table>

#### \* Recommended fees are capped at 0.1 SOL.

#### Subscribe sample:

{% tabs %}
{% tab title="WebSocket" %}

```bash
wscat --header "Authorization: $AUTH_HEADER" \
-c wss://ny.solana.dex.blxrbdn.com/ws \ 
-execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetPriorityFeeStream", {"project": "P_RAYDIUM", "percentile": 55}]}'\
-wait 10000
```

{% endtab %}
{% endtabs %}

**Event Result Details:**

<table><thead><tr><th width="206.12060301507535">Fields</th><th width="316.0202020202021">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>project</code></td><td>enum</td><td>Name of the project fetching.</td></tr><tr><td><code>percentile</code></td><td>double</td><td>How much percentile of the previous <strong>100</strong> slot's priority fee.</td></tr><tr><td><code>feeAtPercentile</code></td><td>uint64</td><td>The priority fee at the defined percentile. In micro lamport.</td></tr></tbody></table>

#### Sample event:

<pre class="language-json"><code class="lang-json">{
    "method":"subscribe",
    "params":{
        "subscription":"f29bc4fa-1c0a-42e2-b9b0-1684e6fa8b63",
        "result":{
            project: 'P_JUPITER', 
            percentile: 55, 
            feeAtPercentile: '71428' 
<strong>            }
</strong>        }
    },
    "jsonrpc":"2.0"
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bloxroute.com/solana/trader-api/api-endpoints/core-endpoints/getpriorityfeestream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
