# GetPriorityFeeStream

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

### Method: `subscribe`&#x20;

### 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:&#x20;

<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>
