Skip to main content
GET
/
priority-fees
/
stream
Streams priority fee estimate updates over a WebSocket connection
curl --request GET \
  --url https://quote-api.dflow.net/priority-fees/stream \
  --header 'x-api-key: <api-key>'
Use this stream to receive real-time priority fee estimate updates.
No subscribe message is required. Connect to the endpoint and start reading messages.

Connection

See the Websockets Overview for endpoint details.

Message Format

Each message is a JSON object with the same shape as GET /priority-fees:
{
  "mediumMicroLamports": 100000,
  "highMicroLamports": 150000,
  "veryHighMicroLamports": 220000
}

Example (TypeScript)

import WebSocket from "ws";

const WS_URL = "wss://dev-quote-api.dflow.net/priority-fees/stream";
const ws = new WebSocket(WS_URL);

ws.onopen = () => {
  console.log("Connected — waiting for priority fee updates");
};

ws.onmessage = (event) => {
  const fees = JSON.parse(event.data.toString());
  console.log("Priority fees (micro-lamports/CU):", fees);
};

Need Help?

https://mintcdn.com/dflow/a8Yx7HBusmKl4Z7w/images/meteor-icons_discord.svg?fit=max&auto=format&n=a8Yx7HBusmKl4Z7w&q=85&s=0ea834bc8a9fa3fe161ba181329effda

Join Our Discord

Connect with other developers, get help, and stay updated on the latest DFlow developments.
https://mintcdn.com/dflow/a8Yx7HBusmKl4Z7w/images/meteor-icons_telegram.svg?fit=max&auto=format&n=a8Yx7HBusmKl4Z7w&q=85&s=e928c5dd68311ff0d419936a35c86eed

Dev Notifications

Join the DFlow Dev Notifications Telegram group to stay in the loop on new features and other announcements.

Authorizations

x-api-key
string
header
required

API key for authentication. Contact hello@dflow.net to obtain an API key.

Response

101

WebSocket upgrade