Authentication

Documentation
API Reference

Everything you need to integrate Dritan's low-latency Solana market data into your trading infrastructure.

DocsOverviewAuthentication
Overview

Authentication

API key authentication methods

Use your API key to authenticate to core endpoints.

REST (header)#

curl -H "x-api-key: YOUR_KEY" https://us-east.dritan.dev/token/price/So11111111111111111111111111111111111111112

WebSocket (browser)#

Browsers do not support custom headers for WebSocket connections. Use a query param:

const ws = new WebSocket("wss://us-east.dritan.dev/damm1?apiKey=YOUR_KEY");

WebSocket (Node.js)#

If you are connecting server-side, you can send the key in a header:

import WebSocket from "ws";

const ws = new WebSocket("wss://us-east.dritan.dev/pumpamm", {
  headers: { "x-api-key": "YOUR_KEY" }
});

SDK (TypeScript)#

import { DritanClient } from "dritan-sdk";

const client = new DritanClient({ apiKey: "YOUR_KEY" });
const stream = client.streamDex("damm1", { onMessage: console.log });
Last updated: 2/25/2026Edit on GitHub