TrenchyToolsAPI

Live data (websocket)

New pons coins, graduations and trades as they happen.

Also on Solana

Same messages as the Solana websocket (subscribeNewToken, subscribeMigration, subscribeTokenTrade, subscribeAccountTrade). Events use EVM names.

WSwss://api.trenchytools.lol/api/rh/data
JavaScript
const ws = new WebSocket('wss://api.trenchytools.lol/api/rh/data?api-key=YOUR_API_KEY')
ws.onopen = () => ws.send(JSON.stringify({ method: 'subscribeNewToken' }))
ws.onmessage = (msg) => {
  const e = JSON.parse(msg.data)
  if (e.txType === 'create') console.log('new pons coin', e.symbol, e.token)
  else if (e.txType === 'buy' || e.txType === 'sell') console.log(e.txType, e.ethAmount, 'ETH by', e.trader)
}
Events
{ "txType": "create", "token": "0x…", "creator": "0x…", "name": "…", "symbol": "…", "image": "…", "curve": "0x…", "hash": "0x…", "block": 94883891 }
{ "txType": "buy", "token": "0x…", "trader": "0x…", "ethAmount": 0.01, "tokenAmount": 5823, "priceEth": 1.7e-6, "hash": "0x…" }
{ "txType": "migrate", "token": "0x…", "venue": "uniswap-v4", "hash": "0x…" }