Prioritization Fee Endpoint

Prioritization Fees

In the Solana network, blocks can only include a transactions up to a maximum limit of compute resources necessary to process. Submitted transactions can include a prioritization fee to enhance their chances of being included in a block. This is particularly beneficial in situations where network congestion is high or when transacting with highly sought-after account resources (e.g., during a popular NFT mint). Understanding and setting appropriate priority fees is essential due to the fluctuating nature of network conditions on Solana.


This is an RPC method designed to provide a more straightforward approach for developers and users to gauge the effective priority fee for their transactions based on recent network activity.


writableAccounts: Accounts which are considered writable from the perspective of the transaction.

percentiles: The percentiles (0-100) at which to evaluate the prioritization fee. 100th percentile = maximum, 50th = median, etc.

lookbackSlots: The number of recent blocks to consider for calculating the percentile value. Defaults to a maximum value of 150 slots.

Example Json body:

    "jsonrpc": "2.0",
    "id": 1,
    "method": "getPrioritizationFee",
    "params": {
        "writableAccounts": ["EabfmmUuZt9S7SRqquTxVy5drnh2Biy6AtENHCH6cyig",
        "percentiles": [0,25,50, 75, 95, 100],
        "lookbackSlots": 100

Example response:

    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "percentileToFee": {
            "0": 0,
            "25": 5,
            "50": 55,
            "75": 100,
            "95": 2000,
            "100": 14291,