Decoded swap streams

One of the most valuable features of Heimdahl is the real-time stream of decoded swap events from Solana DEXs.

These events are parsed directly from on-chain instructions — no guesswork, no decoding needed. You get structured, typed JSON messages for every swap, streamed over WebSocket.


Stream Endpoint

wss://api.heimdahl.xyz/v1/swaps/stream/<chain>.<network>.<dex>?api_key=<your_api_key>
  • chain: Currently only solana is supported

  • network: mainnet

  • dex: One of the supported DEX sources listed below

  • api_key: Your Heimdahl API key (demo works for 5 minutes)


Supported DEX Sources

DEX Name
Identifier (use in URL)

Meteora DLMM

meteora-dlmm

Pump.fun

pumpfun

PumpSwap

pumpswap

Raydium CPMM

raydium-cpmm


Sample Stream Usage (JavaScript)


Sample Event Payloads

🟢 Pump.fun Buy

🔴 Pump.fun Sell

🟡 Raydium CPMM Swap


Notes

  • Use demo key for testing (5 min limit).

  • Data is sent as structured JSON, ready for direct use in bots, dashboards, or alerts.

  • More DEXes and chains coming soon — including Sui and Cosmos.

Last updated