curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getRecentPrioritizationFees",
"params": [
[
"CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"
]
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{}
]
}curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getRecentPrioritizationFees",
"params": [
[
"CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"
]
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{}
]
}getRecentPrioritizationFees methodgetRecentPrioritizationFees method returns a list of recent prioritization fees observed in the network. These prioritization fees represent the per-compute-unit fees paid by transactions to gain priority over other transactions in the same block.
The prioritization fee is optional and can be attached to a transaction to increase its likelihood of being included in the next block. A transaction can be prioritized over other transactions with lower or no prioritization fees by paying a higher prioritization fee.
array — an array of base-58 encoded public key strings representing Solana account addresses, with a maximum of 128 addresses.slot (u64) — the slot where the transactions associated with the prioritization fees were processed.prioritizationFee (u64) — the fee in micro-lamports per compute unit paid by at least one transaction within the specified slot to achieve prioritized processing.params array entirely, the response returns unfiltered samples across all transactions.
getRecentPrioritizationFees is to determine an appropriate priority fee for your transactions. By querying recent fees for the specific accounts your transaction will lock, you get a realistic picture of what competing transactions are paying. See also Estimate priority fees with getRecentPrioritizationFees for a practical implementation guide.Was this page helpful?