getRecentPrioritizationFees
Returns a list of prioritization fees from recent blocks to help estimate appropriate priority fees for transactions. The method returns data from up to 150 recent blocks stored in the node's prioritization-fee cache. When account addresses are provided, the response reflects the fees needed to land a transaction that locks all specified accounts as writable, helping estimate fees for transactions with account contention. This data is essential for applications that need to dynamically adjust priority fees based on current network conditions, ensuring transactions are processed quickly without overpaying. The fees are expressed in microlamports per compute unit, where 1 microlamport = 0.000001 lamports. Parameters
addresses(optional) — Optional list of account pubkeys (max 128). Returned fees are scoped to recent blocks that referenced any of these accounts.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be getRecentPrioritizationFees.
getRecentPrioritizationFeesPossible values: Successful getRecentPrioritizationFees response.
Base envelope of every JSON-RPC 2.0 response.
2.0Possible values: Echoed request id.
1Authentication required or invalid.
Insufficient permissions for the request.
Rate limit exceeded for this tier.
Unexpected server error.
curl -X POST https://public.rpc.solanavibestation.com \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPrioritizationFees",
"params": [
[
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"slot": 416997125,
"prioritizationFee": 0
},
{
"slot": 416997126,
"prioritizationFee": 0
},
{
"slot": 416997127,
"prioritizationFee": 1000
}
]
}Last updated