Tiny TypeScript demo of OrbitFlare's @orbitflare/sdk.
Subscribes to one Solana program over Jetstream, prints a live transactions-per-second meter and the last 10 signatures, redrawing every second. A WebSocket slotSubscribe() ticks the chain slot in the header so a quiet meter still shows a live network.
git clone https://github.com/orbitflare/jetstream-tx-rate.git
cd jetstream-tx-rate
npm install
export ORBITFLARE_LICENSE_KEY=ORBIT-XXXX-XXXX-XXXX
npm start pumpfun # or: raydium, jupiter, or any raw program IDJetstream itself needs no api key, but the WebSocket slot feed picks one up from ORBITFLARE_LICENSE_KEY.
Override either endpoint with env vars:
JETSTREAM_URL=http://jp.jetstream.orbitflare.com \
ORBITFLARE_WS_URL=ws://fra.rpc.orbitflare.com \
npm start raydiumOutput:
jetstream tx rate: pumpfun (6EF8rrec...)
chain slot: 421442130
last 1s: 14 tx/s
last 10s: 9.7 tx/s avg
recent signatures:
0.1s ago slot 421442129 4bpPQBUHmobNJ4SS9ETLaMwY...
0.4s ago slot 421442128 Gsi3P32j6h9Yx3ce1gfHR5Pa...
...
Ctrl+C to stop.
Walkthrough: Building a Live Solana TPS Meter with OrbitFlare's TypeScript SDK.