Websocket endpoints

Subscribe to recently used tip amounts

This subscription provides you with percentiles for recently used tips.

Example request

wscat --header "X-TOKEN: your_token" \
	-c wss://solana-rpc.rpcfast.net/ws/trader \
	--wait 1000000 \
  --execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetBundleTipStream", {}]}'

Request format

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "subscribe",
  "params": ["GetBundleTipStream", {}]
}

Response format

{
	"jsonrpc": "2.0",
	"method": "subscribe",
	"params": {
		"subscription": "044d3209-0dd6-4a72-acee-9f80a19b48a1",
		"result": {
			"timestamp": null,
			"percentile25": 1.91875e-06,
			"percentile50": 1e-05,
			"percentile75": 3.719075e-05,
			"percentile95": 0.00099338365,
			"percentile99": 0.013046900000000005,
			"emaPercentile50": 1.0000062827311115e-05
		}
	}
}

Event result format

Field

Type

Description

timestamp

string

The timestamp when the sample was taken

percentile25

uint64

How much tip was paid at the 25th percentile

percentile50

uint64

How much tip was paid at the 50th percentile

percentile75

uint64

How much tip was paid at the 75th percentile

percentile95

uint64

How much tip was paid at the 95th percentile

percentile99

uint64

How much tip was paid at the 99th percentile

emaPercentile50

uint64

The 1-minute Exponential Moving Average (EMA) for the 50th percentile tip

Subscribe to transaction priority fee stream

This subscription provides you recent priority fee based on the project over the last 100 slots.

Example request

wscat --header "X-TOKEN: your_token" \
	-c wss://solana-rpc.rpcfast.net/ws/trader \
	--wait 1000000 \
  --execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetPriorityFeeStream", {}]}'

Request format

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "subscribe",
  "params": [
    "GetPriorityFeeStream",
    {
      "project": "P_RAYDIUM"
    }
  ]
}

Extra parameters

Parameter

Type

Description

Allowed values

Optional

project

enum

Specify which project to fetch the recent priority fee for

"P_JUPITER","P_RAYDIUM"

no

percentile

double

Specify how much percentile of the previous 100 slot's priority fee. Use 90, if you want the top 90% percentile. Default value is 55

yes

Response format

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

Last updated