{"openrpc":"1.2.6","info":{"title":"Solana Priority Fee","description":"Quicknode Solana Priority Fee reference","version":"1.0.0"},"methods":[{"name":"qn_estimatePriorityFees","summary":"Get fee averages and estimates based on recent fee data","description":"Get fee averages and estimates based on recent fee data","params":[{"name":"last_n_blocks","description":"(Optional) The number of blocks to look back to calculate averages (the maximum value is 100, and also the default is 100)","schema":{"type":"string"}},{"name":"account","description":"(Optional) The program account to use for the prioritization fee calculation","schema":{"type":"string"}},{"name":"api_version","description":"(Optional) Specifies the version of the Solana Priority Fee API to use. Version 2 provides more accurately weighted priority fee data","schema":{"type":"integer"}}],"result":{"name":"result","description":"The result object which contain the following objects:","schema":{"type":"object","properties":{"context":{"type":"object","properties":{"slot":{"type":"integer","description":"The current slot number"}},"description":"The context object which contains the following fields:"},"recommended":{"type":"integer","description":"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":{"type":"object","properties":{"extreme":{"type":"integer","description":"Fee estimate for extreme priority per compute unit (90th percentile)"},"high":{"type":"integer","description":"Fee estimate for high priority per compute unit (75th percentile)"},"medium":{"type":"integer","description":"Fee estimate for medium priority per compute unit (50th percentile)"},"low":{"type":"integer","description":"Fee estimate for low priority per compute unit (25th percentile)"},"percentiles":{"type":"object","description":"Fee estimates at various percentiles for per-compute-unit metrics"}},"description":"It provides estimates for priority fees (in microlamports) based on per-compute-unit metrics"},"per_transaction":{"type":"object","properties":{"extreme":{"type":"integer","description":"Fee estimate for extreme priority per transaction (90th percentile)"},"high":{"type":"integer","description":"Fee estimate for high priority per transaction (75th percentile)"},"medium":{"type":"integer","description":"Fee estimate for medium priority per transaction (50th percentile)"},"low":{"type":"integer","description":"Fee estimate for low priority per transaction (25th percentile)"},"percentiles":{"type":"object","description":"Fee estimates at various percentiles for per-transaction metrics"}},"description":"It provides estimates for priority fees based on per-transaction metrics"}}}},"tags":[{"name":"qn"}],"externalDocs":{"description":"Quicknode docs","url":"https://www.quicknode.com/zh/docs/solana/qn_estimatePriorityFees"},"examples":[{"name":"qn_estimatePriorityFees example","params":[],"result":{"name":"qn_estimatePriorityFees result","value":{"context":{"slot":335501774},"per_compute_unit":{"extreme":1432990,"high":615532,"low":36050,"medium":89430,"percentiles":{"0":1,"5":2402,"10":9401,"15":12322,"20":21923,"25":36050,"30":38531,"35":40000,"40":51500,"45":66941,"50":89430,"55":142355,"60":277047,"65":387306,"70":515332,"75":615532,"80":653795,"85":877892,"90":1432990,"95":2778906,"100":17916371}},"per_transaction":{"extreme":309996858926,"high":78616978104,"low":4999945143,"medium":19888064000,"percentiles":{"0":120000,"5":499874760,"10":999958640,"15":1548200000,"20":3253218636,"25":4999945143,"30":6999918885,"35":8256257445,"40":9939500000,"45":16000000000,"50":19888064000,"55":30843970682,"60":53838500000,"65":75000030666,"70":75000149536,"75":78616978104,"80":96519726324,"85":155542584183,"90":309996858926,"95":500000830995,"100":20195000000000}},"recommended":877892}}}]}],"servers":[{"name":"Priority Fee","url":"https://docs-demo.solana-mainnet.quiknode.pro"}]}