Skip to main content
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);
};