Skip to main content

qn_estimatePriorityFees RPC Method

Get fee averages and estimates based on recent fee data.

Updated on
Mar 12, 2024

qn_estimatePriorityFees RPC Method

Please note that this RPC method requires the Solana Priority Fee API add-on enabled on your QuickNode endpoint.

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

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
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 (95th percentile)
high
integer
Fee estimate for high priority per compute unit (80th percentile)
medium
integer
Fee estimate for medium priority per compute unit (60th percentile)
low
integer
Fee estimate for low priority per compute unit (40th 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 (95th percentile)
high
integer
Fee estimate for high priority per transaction (80th percentile)
medium
integer
Fee estimate for medium priority per transaction (60th percentile)
low
integer
Fee estimate for low priority per transaction (40th percentile)
percentiles
object
Fee estimates at various percentiles for per-transaction metrics
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-H "x-qn-api-version: 1" \
5
--data '{
6
"jsonrpc": "2.0",
7
"id": 1,
8
"method": "qn_estimatePriorityFees",
9
"params": {
10
"last_n_blocks": 100,
11
"account": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
12
}
13
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free