Skip to content

GET /v1/stream/balance-history

Stream incremental wallet balance history while the backend reconstructs the full result.

This is the SSE companion to GET /v1/history/balance.

Request

http
GET /v1/stream/balance-history?walletAddress=<pubkey>&heliusRpcUrl=<urlencoded>&assetMint=SOL
x-api-key: YOUR_API_KEY

Query parameters

FieldTypeRequiredDefaultDescription
walletAddressstringYesBase58 Solana wallet address
heliusRpcUrlstringYesFull HTTPS Helius RPC URL including API key
assetMintstringNoSOLSOL or a base58 SPL mint address
apiKeystringNoQuery-param auth fallback for SSE clients that cannot set headers

Events

EventDescription
readyStream accepted
progressRough phase-based progress estimate
pointsNewly discovered balance points batch
completeFinal full result
heartbeatConnection keepalive
errorTerminal compute error

Progress phases

PhaseMeaning
seedInitial newest-history seed loaded
enumerateSignature discovery complete
hydrateFull transaction windows being hydrated
repairFinal missing-slot repair pass
completeFinal result ready

Notes

  • points batches arrive in discovery order, not guaranteed final sorted order.
  • Deduplicate by signature and sort by (slot, transactionIndex) client-side for stable charts.
  • Browser-native EventSource cannot set custom headers; ?apiKey= is supported for that case.
  • Prefer header auth when possible; use ?apiKey= as a compatibility fallback.

Example

bash
curl -N "https://api.venum.dev/v1/stream/balance-history?walletAddress=EbUNi6setNdX7a89j4i1nVF9Cnw6puSFJk7Fjrnnxfe2&heliusRpcUrl=https%3A%2F%2Fmainnet.helius-rpc.com%2F%3Fapi-key%3DYOUR_HELIUS_KEY&assetMint=SOL&apiKey=YOUR_API_KEY"

Errors

See the companion REST page GET /v1/history/balance for validation details.