# Launches

# WS /solana/launches/programs Basic

Uses Websockets to retrieve token launches on the selected smart contract.

Available smart contracts:

  • pump.fun 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
  • Raydium 1234
import WebSocket from 'ws';

const ws = new WebSocket(`wss://api.coinfactory.io/solana/transactions/programs?auth={key}`);

ws.addEventListener('open', function open() {
   ws.send(JSON.stringify({
  "action": "subscribe",
     "programs": ["6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"],
  "filter": {
   "min": 100000 // lamports
  }
 }));
});

ws.addEventListener('message', (data) => {
 console.log(data);
});