Stream Priority Fee

This channel provides you with the top percentile of the recent priority fee based on the project over the last 100 slots.

Be aware that using a suggested priority fee does not guarantee your transaction will be included in the future slot.

Subscribe

Parameters:

ParameterTypeDescription

project

enum

Define which project to fetch the recent priority fee. Potential value: "P_JUPITER", "P_RAYDIUM"

percentile

double

OPTIONAL. Define how much percentile of the previous 100 slot's priority fee. Type 90, if you want the top 90% percentile. Default 55.

Subscribe sample:

wscat --header "Authorization: $AUTH_HEADER" \
-c wss://ny.solana.dex.blxrbdn.com/ws \ 
-execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetPriorityFeeStream", {"project": "P_RAYDIUM", "percentile": 55}]}'\
-wait 10000

Event Result Details:

FieldsTypeDescription

project

enum

Name of the project fetching.

percentile

double

How much percentile of the previous 100 slot's priority fee.

feeAtPercentile

uint64

The priority fee at the defined percentile. In micro lamport.

Sample event:

{
    "method":"subscribe",
    "params":{
        "subscription":"f29bc4fa-1c0a-42e2-b9b0-1684e6fa8b63",
        "result":{
            project: 'P_JUPITER', 
            percentile: 55, 
            feeAtPercentile: '71428' 
            }
        }
    },
    "jsonrpc":"2.0"
}

Last updated