walletTxs subscription delivers transactions for the wallets you subscribe to, with decoded_details typed as a SwapTransaction or TransferTransaction union member.
Subscribe
GraphQL Subscription
SOLANA_MAINNET (SCREAMING_SNAKE_CASE), not solana-mainnet. The Streaming API uses the enum; the Foundational REST API uses the kebab-case form.
Patterns
Copy-trading
Subscribe to a curated list of high-performing wallets. Filter the stream onSwapTransaction and mirror to your own execution layer.
Whale watch
Subscribe to a curated list of high-balance wallets and surface every fill and large transfer in a live tape.Compliance / AML alerts
Subscribe to flagged addresses. Filter onTransferTransaction events and alert when amount exceeds a threshold.
Push vs pull
For long-range transfer history, use the warehousetransfers normalizer; use walletTxs here for the live tip.
Production considerations
- Reconnect on close or error. Wrap subscribe in a function; re-invoke with 1-2s backoff on
error/complete. - Validate addresses up front. Pre-filter with a base58 validator before passing in.
- No gap-fill on reconnect. Events that occurred during a disconnect are not replayed. For continuity across a gap, query the warehouse
transfersorswapstable over the disconnect window.
Related
- Wallet endpoints - REST companion for SPL token balances.
- SPL Transfers warehouse recipe - decoded SPL transfers landed in your warehouse.
- DEX Swaps warehouse recipe - decoded DEX swaps landed in your warehouse.
- Wallet Activity Stream reference - full subscription schema.