Skip to main content

qn_estimatePriorityFees RPC Method - Priority Fee

Get fee averages and estimates based on recent fee data.

Updated on
Sep 26, 2026
Please note that this RPC method requires the Solana Priority Fee API add-on enabled on your Quicknode endpoint.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode add-ons into your applications. For more information on how to use Quicknode add-ons with Solana Kit, check out these guides: How to Use Quicknode Add-ons using Solana Kit (Part 1) and How to Use Quicknode Add-ons using Solana Kit (Part 2)

Parameters

last_n_blocks
string

(Optional) The number of blocks to look back to calculate averages (the maximum value is 100, and also the default is 100)

account
string

(Optional) The program account to use for the prioritization fee calculation

api_version
integer

(Optional) Specifies the version of the Solana Priority Fee API to use. Version 2 provides more accurately weighted priority fee data

Returns

result
object

The result object which contain the following objects:

context
object

The context object which contains the following fields:

slot
integer

The current slot number

recommended
integer

Recommended per commute unit value to maximize chances of landing a transaction based on current network conditions. Sending non-duplicate transactions with recommended priority fees or higher will be routed through Quicknode's staked (SWQoS) connection.

per_compute_unit
object

It provides estimates for priority fees (in microlamports) based on per-compute-unit metrics

extreme
integer

Fee estimate for extreme priority per compute unit (90th percentile)

high
integer

Fee estimate for high priority per compute unit (75th percentile)

medium
integer

Fee estimate for medium priority per compute unit (50th percentile)

low
integer

Fee estimate for low priority per compute unit (25th percentile)

percentiles
object

Fee estimates at various percentiles for per-compute-unit metrics

per_transaction
object

It provides estimates for priority fees based on per-transaction metrics

extreme
integer

Fee estimate for extreme priority per transaction (90th percentile)

high
integer

Fee estimate for high priority per transaction (75th percentile)

medium
integer

Fee estimate for medium priority per transaction (50th percentile)

low
integer

Fee estimate for low priority per transaction (25th percentile)

percentiles
object

Fee estimates at various percentiles for per-transaction metrics

Request
Response
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": {
5
"context": {
6
"slot": 335501774
7
},
8
"per_compute_unit": {
9
"extreme": 1432990,
10
"high": 615532,
11
"low": 36050,
12
"medium": 89430,
13
"percentiles": {
14
"0": 1,
15
"5": 2402,
16
"10": 9401,
17
"15": 12322,
18
"20": 21923,
19
"25": 36050,
20
"30": 38531,
21
"35": 40000,
22
"40": 51500,
23
"45": 66941,
24
"50": 89430,
25
"55": 142355,
26
"60": 277047,
27
"65": 387306,
28
"70": 515332,
29
"75": 615532,
30
"80": 653795,
31
"85": 877892,
32
"90": 1432990,
33
"95": 2778906,
34
"100": 17916371
35
}
36
},
37
"per_transaction": {
38
"extreme": 309996858926,
39
"high": 78616978104,
40
"low": 4999945143,
41
"medium": 19888064000,
42
"percentiles": {
43
"0": 120000,
44
"5": 499874760,
45
"10": 999958640,
46
"15": 1548200000,
47
"20": 3253218636,
48
"25": 4999945143,
49
"30": 6999918885,
50
"35": 8256257445,
51
"40": 9939500000,
52
"45": 16000000000,
53
"50": 19888064000,
54
"55": 30843970682,
55
"60": 53838500000,
56
"65": 75000030666,
57
"70": 75000149536,
58
"75": 78616978104,
59
"80": 96519726324,
60
"85": 155542584183,
61
"90": 309996858926,
62
"95": 500000830995,
63
"100": 20195000000000
64
}
65
},
66
"recommended": 877892
67
}
68
}
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": {
5
"context": {
6
"slot": 335501774
7
},
8
"per_compute_unit": {
9
"extreme": 1432990,
10
"high": 615532,
11
"low": 36050,
12
"medium": 89430,
13
"percentiles": {
14
"0": 1,
15
"5": 2402,
16
"10": 9401,
17
"15": 12322,
18
"20": 21923,
19
"25": 36050,
20
"30": 38531,
21
"35": 40000,
22
"40": 51500,
23
"45": 66941,
24
"50": 89430,
25
"55": 142355,
26
"60": 277047,
27
"65": 387306,
28
"70": 515332,
29
"75": 615532,
30
"80": 653795,
31
"85": 877892,
32
"90": 1432990,
33
"95": 2778906,
34
"100": 17916371
35
}
36
},
37
"per_transaction": {
38
"extreme": 309996858926,
39
"high": 78616978104,
40
"low": 4999945143,
41
"medium": 19888064000,
42
"percentiles": {
43
"0": 120000,
44
"5": 499874760,
45
"10": 999958640,
46
"15": 1548200000,
47
"20": 3253218636,
48
"25": 4999945143,
49
"30": 6999918885,
50
"35": 8256257445,
51
"40": 9939500000,
52
"45": 16000000000,
53
"50": 19888064000,
54
"55": 30843970682,
55
"60": 53838500000,
56
"65": 75000030666,
57
"70": 75000149536,
58
"75": 78616978104,
59
"80": 96519726324,
60
"85": 155542584183,
61
"90": 309996858926,
62
"95": 500000830995,
63
"100": 20195000000000
64
}
65
},
66
"recommended": 877892
67
}
68
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free