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 asGET /priority-fees:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🤖 New: DFlow Agent CLI. Give your AI agent a Solana wallet and let it trade. Get started
Stream Trading API priority fee estimates over WebSocket
GET /priority-fees:
{
"mediumMicroLamports": 100000,
"highMicroLamports": 150000,
"veryHighMicroLamports": 220000
}
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);
};