Request
GET https://tipstack.fun/api/solana/tips/stream
The creator’s Solana wallet address (base58) to subscribe to. Only tip events where this address is the recipient will be pushed to the stream.
Protocol
This endpoint uses the Server-Sent Events protocol. Connect with a standardEventSource in the browser or any SSE-compatible HTTP client. The server sends:
- A
retry: 10000directive on connection, instructing clients to reconnect after 10 seconds if the connection drops. - A
connectedstatus event immediately after the stream is established. - Heartbeat comments (
:) every 15 seconds to keep the connection alive through proxies and load balancers. - A tip event object for each confirmed incoming tip.
Event format
Connection event
Immediately after the stream is established, the server sends a handshake event:JSON
Tip events
Each incoming tip is delivered as adata: line containing a JSON object:
JSON
| Field | Type | Description |
|---|---|---|
type | string | "tip" for tip events. |
amount | number | Tip amount in human-readable units. |
tokenSymbol | string | Token symbol, e.g. SOL, USDC. |
sender | string | Sender’s wallet address or display name. |
message | string | null | Optional message from the supporter. |
timestamp | string | ISO 8601 timestamp of the confirmed tip. |
JavaScript client example
EventStream.js
React hook example
React
Use cases
- Live streaming overlays — Display animated tip alerts on Twitch, YouTube, or Kick streams by embedding an overlay page that connects to this stream.
- Real-time dashboards — Update tip totals and leaderboards instantly without polling the REST API.
- Mobile notifications — Trigger push notifications server-side by subscribing from your backend and forwarding events to a notification service.
Keep the connection alive with an EventSource reconnect strategy. The stream auto-reconnects on most browsers, using the
retry: 10000 directive sent by the server. For Node.js or server-side consumers, use an SSE client library that handles reconnection automatically.This endpoint runs on Vercel Edge Runtime for low-latency global delivery. New tip events are pushed to all active streams for the subscribed wallet address as soon as they are confirmed on-chain.
