Skip to main content
WSS

Documentation Index

Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt

Use this file to discover all available pages before exploring further.

SDK Example

import { Datastream } from '@solana-tracker/data-api';

const dataStream = new Datastream({
  wsUrl: 'wss://datastream.solanatracker.io/YOUR_API_KEY',
});

await dataStream.connect();

const sub = dataStream.subscribe.stats.total.pool('9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2').on((data) => {
  console.log(data);
});

// sub.unsubscribe();
Messages
apiKey
type:httpApiKey

API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}

joinPoolStatsTotal
type:object

Subscribe to total pool statistics

leavePoolStatsTotal
type:object

Unsubscribe from total pool statistics

poolStatsTotalJoined
type:object

Total pool stats subscription confirmed

poolStatsTotalMessage
type:object

Total pool statistics notification