getRecentPrioritizationFees RPC Method
Parameters
address
array
Loading...
Returns
result
array
Loading...
prioritizationFee
integer
Loading...
slot
integer
Loading...
Request
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0","id":1,"method":"getRecentPrioritizationFees","params":[]}'require "uri"
require "json"
require "net/http"
url = URI("https://docs-demo.solana-mainnet.quiknode.pro/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPrioritizationFees",
"params": []
})
response = https.request(request)
puts response.read_body
import { createSolanaRpc } from "@solana/kit";
(async () => {
const solanaRpc = createSolanaRpc("https://docs-demo.solana-mainnet.quiknode.pro/");
try {
const prioritizationFees = await solanaRpc.getRecentPrioritizationFees().send();
console.log(prioritizationFees);
} catch (error) {
console.error("Error fetching recent prioritization fees:", error);
}
})();const web3 = require("@solana/web3.js");
(async () => {
const solana = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/");
console.log(await solana.getRecentPrioritizationFees());
})();
use reqwest::header;
use reqwest::Client;
use std::error::Error;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let mut headers = header::HeaderMap::new();
headers.insert("Content-Type", "application/json".parse().unwrap());
let client = Client::new();
let json_data = r#"
{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPrioritizationFees",
"params": []
}
"#;
let response = client
.post("https://docs-demo.solana-mainnet.quiknode.pro/")
.headers(headers)
.body(json_data)
.send()
.await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}Response
{
"jsonrpc": "2.0",
"result": [
{
"prioritizationFee": 0,
"slot": 335501698
},
{
"prioritizationFee": 0,
"slot": 335501699
},
{
"prioritizationFee": 0,
"slot": 335501700
},
{
"prioritizationFee": 0,
"slot": 335501701
},
{
"prioritizationFee": 0,
"slot": 335501702
},
{
"prioritizationFee": 0,
"slot": 335501703
},
{
"prioritizationFee": 0,
"slot": 335501704
},
{
"prioritizationFee": 0,
"slot": 335501705
},
{
"prioritizationFee": 0,
"slot": 335501706
},
{
"prioritizationFee": 0,
"slot": 335501707
},
{
"prioritizationFee": 0,
"slot": 335501708
},
{
"prioritizationFee": 0,
"slot": 335501709
},
{
"prioritizationFee": 0,
"slot": 335501710
},
{
"prioritizationFee": 0,
"slot": 335501711
},
{
"prioritizationFee": 0,
"slot": 335501712
},
{
"prioritizationFee": 0,
"slot": 335501713
},
{
"prioritizationFee": 0,
"slot": 335501714
},
{
"prioritizationFee": 0,
"slot": 335501715
},
{
"prioritizationFee": 0,
"slot": 335501716
},
{
"prioritizationFee": 0,
"slot": 335501717
},
{
"prioritizationFee": 0,
"slot": 335501718
},
{
"prioritizationFee": 0,
"slot": 335501719
},
{
"prioritizationFee": 0,
"slot": 335501720
},
{
"prioritizationFee": 0,
"slot": 335501721
},
{
"prioritizationFee": 0,
"slot": 335501722
},
{
"prioritizationFee": 0,
"slot": 335501723
},
{
"prioritizationFee": 0,
"slot": 335501724
},
{
"prioritizationFee": 0,
"slot": 335501725
},
{
"prioritizationFee": 0,
"slot": 335501726
},
{
"prioritizationFee": 0,
"slot": 335501727
},
{
"prioritizationFee": 0,
"slot": 335501728
},
{
"prioritizationFee": 0,
"slot": 335501729
},
{
"prioritizationFee": 0,
"slot": 335501730
},
{
"prioritizationFee": 0,
"slot": 335501731
},
{
"prioritizationFee": 0,
"slot": 335501732
},
{
"prioritizationFee": 0,
"slot": 335501733
},
{
"prioritizationFee": 0,
"slot": 335501734
},
{
"prioritizationFee": 0,
"slot": 335501735
},
{
"prioritizationFee": 0,
"slot": 335501736
},
{
"prioritizationFee": 0,
"slot": 335501737
},
{
"prioritizationFee": 0,
"slot": 335501738
},
{
"prioritizationFee": 0,
"slot": 335501739
},
{
"prioritizationFee": 0,
"slot": 335501740
},
{
"prioritizationFee": 0,
"slot": 335501741
},
{
"prioritizationFee": 0,
"slot": 335501742
},
{
"prioritizationFee": 0,
"slot": 335501743
},
{
"prioritizationFee": 0,
"slot": 335501744
},
{
"prioritizationFee": 0,
"slot": 335501745
},
{
"prioritizationFee": 0,
"slot": 335501746
},
{
"prioritizationFee": 0,
"slot": 335501747
},
{
"prioritizationFee": 0,
"slot": 335501748
},
{
"prioritizationFee": 0,
"slot": 335501749
},
{
"prioritizationFee": 0,
"slot": 335501750
},
{
"prioritizationFee": 0,
"slot": 335501751
},
{
"prioritizationFee": 0,
"slot": 335501752
},
{
"prioritizationFee": 0,
"slot": 335501753
},
{
"prioritizationFee": 0,
"slot": 335501754
},
{
"prioritizationFee": 0,
"slot": 335501755
},
{
"prioritizationFee": 0,
"slot": 335501756
},
{
"prioritizationFee": 0,
"slot": 335501757
},
{
"prioritizationFee": 0,
"slot": 335501758
},
{
"prioritizationFee": 0,
"slot": 335501759
},
{
"prioritizationFee": 0,
"slot": 335501760
},
{
"prioritizationFee": 0,
"slot": 335501761
},
{
"prioritizationFee": 0,
"slot": 335501762
},
{
"prioritizationFee": 0,
"slot": 335501763
},
{
"prioritizationFee": 0,
"slot": 335501764
},
{
"prioritizationFee": 0,
"slot": 335501765
},
{
"prioritizationFee": 0,
"slot": 335501766
},
{
"prioritizationFee": 0,
"slot": 335501767
},
{
"prioritizationFee": 0,
"slot": 335501768
},
{
"prioritizationFee": 0,
"slot": 335501769
},
{
"prioritizationFee": 0,
"slot": 335501770
},
{
"prioritizationFee": 0,
"slot": 335501771
},
{
"prioritizationFee": 0,
"slot": 335501772
},
{
"prioritizationFee": 0,
"slot": 335501773
},
{
"prioritizationFee": 0,
"slot": 335501774
},
{
"prioritizationFee": 0,
"slot": 335501775
},
{
"prioritizationFee": 0,
"slot": 335501776
},
{
"prioritizationFee": 0,
"slot": 335501777
},
{
"prioritizationFee": 0,
"slot": 335501778
},
{
"prioritizationFee": 0,
"slot": 335501779
},
{
"prioritizationFee": 0,
"slot": 335501780
},
{
"prioritizationFee": 0,
"slot": 335501781
},
{
"prioritizationFee": 0,
"slot": 335501782
},
{
"prioritizationFee": 0,
"slot": 335501783
},
{
"prioritizationFee": 0,
"slot": 335501784
},
{
"prioritizationFee": 0,
"slot": 335501785
},
{
"prioritizationFee": 0,
"slot": 335501786
},
{
"prioritizationFee": 0,
"slot": 335501787
},
{
"prioritizationFee": 0,
"slot": 335501788
},
{
"prioritizationFee": 0,
"slot": 335501789
},
{
"prioritizationFee": 0,
"slot": 335501790
},
{
"prioritizationFee": 0,
"slot": 335501791
},
{
"prioritizationFee": 0,
"slot": 335501792
},
{
"prioritizationFee": 0,
"slot": 335501793
},
{
"prioritizationFee": 0,
"slot": 335501794
},
{
"prioritizationFee": 0,
"slot": 335501795
},
{
"prioritizationFee": 0,
"slot": 335501796
},
{
"prioritizationFee": 0,
"slot": 335501797
},
{
"prioritizationFee": 0,
"slot": 335501798
},
{
"prioritizationFee": 81,
"slot": 335501799
},
{
"prioritizationFee": 0,
"slot": 335501800
},
{
"prioritizationFee": 0,
"slot": 335501801
},
{
"prioritizationFee": 0,
"slot": 335501802
},
{
"prioritizationFee": 0,
"slot": 335501803
},
{
"prioritizationFee": 0,
"slot": 335501804
},
{
"prioritizationFee": 0,
"slot": 335501805
},
{
"prioritizationFee": 0,
"slot": 335501806
},
{
"prioritizationFee": 0,
"slot": 335501807
},
{
"prioritizationFee": 0,
"slot": 335501808
},
{
"prioritizationFee": 0,
"slot": 335501809
},
{
"prioritizationFee": 0,
"slot": 335501810
},
{
"prioritizationFee": 0,
"slot": 335501811
},
{
"prioritizationFee": 0,
"slot": 335501812
},
{
"prioritizationFee": 0,
"slot": 335501813
},
{
"prioritizationFee": 0,
"slot": 335501814
},
{
"prioritizationFee": 0,
"slot": 335501815
},
{
"prioritizationFee": 0,
"slot": 335501816
},
{
"prioritizationFee": 0,
"slot": 335501817
},
{
"prioritizationFee": 0,
"slot": 335501818
},
{
"prioritizationFee": 0,
"slot": 335501819
},
{
"prioritizationFee": 0,
"slot": 335501820
},
{
"prioritizationFee": 0,
"slot": 335501821
},
{
"prioritizationFee": 0,
"slot": 335501822
},
{
"prioritizationFee": 0,
"slot": 335501823
},
{
"prioritizationFee": 0,
"slot": 335501824
},
{
"prioritizationFee": 0,
"slot": 335501825
},
{
"prioritizationFee": 0,
"slot": 335501826
},
{
"prioritizationFee": 0,
"slot": 335501827
},
{
"prioritizationFee": 0,
"slot": 335501828
},
{
"prioritizationFee": 0,
"slot": 335501829
},
{
"prioritizationFee": 0,
"slot": 335501830
},
{
"prioritizationFee": 0,
"slot": 335501831
},
{
"prioritizationFee": 0,
"slot": 335501832
},
{
"prioritizationFee": 0,
"slot": 335501833
},
{
"prioritizationFee": 0,
"slot": 335501834
},
{
"prioritizationFee": 0,
"slot": 335501835
},
{
"prioritizationFee": 0,
"slot": 335501836
},
{
"prioritizationFee": 0,
"slot": 335501837
},
{
"prioritizationFee": 0,
"slot": 335501838
},
{
"prioritizationFee": 0,
"slot": 335501839
},
{
"prioritizationFee": 0,
"slot": 335501840
},
{
"prioritizationFee": 0,
"slot": 335501841
},
{
"prioritizationFee": 0,
"slot": 335501842
},
{
"prioritizationFee": 0,
"slot": 335501843
},
{
"prioritizationFee": 0,
"slot": 335501844
},
{
"prioritizationFee": 0,
"slot": 335501845
},
{
"prioritizationFee": 0,
"slot": 335501846
},
{
"prioritizationFee": 0,
"slot": 335501847
}
],
"id": 1
}Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free