Stream real-time swap transactions for a single pool or token
Establishes an SSE stream for swap transactions on a specific pool or token using query string parameters.
Supported Channel Events: - pool: Swap transactions for a pool. Schema matches TransactionResponse. - token: Swap transactions involving a token. Schema matches TransactionResponse. - ping: Infrastructure keep-alive payload (PingEvent). - warning: System warning notifications (WarningEvent). - error: Stream-level operational exceptions (ErrorEvent).
Query Parameters
Subscription target type — pool for pool-level transactions, token for token-level.
pool, token Target pool or token smart contract address.
Target blockchain network identifier (e.g., ethereum, solana).
Optional identifier for tracking the request in the SSE stream.
0 <= x <= 4294967295Maximum event count before server-initiated connection teardown.
x >= 1Response
SSE stream successfully established.
- Option 1
- Option 2
- Option 3
- Option 4
Swap transaction event payload. Emitted on the pool or token event channel.
Blockchain network identifier.
"ethereum"
Pool smart contract address.
"0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
Block number in which the swap was confirmed (string-encoded integer).
"19000000"
Block timestamp in RFC 3339 format.
Transaction hash.
"0xabc123..."
Address that initiated the swap.
"0xd3cda913deb6f0967b991b2d0a373199c2f7c90c"
Address that received the output tokens.
"0xd3cda913deb6f0967b991b2d0a373199c2f7c90c"
Address of the first token in the pool.
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
Address of the second token in the pool.
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
Raw token0 amount from the chain (not decimal-normalised). Negative means tokens left the user's wallet.
-1000
Raw token1 amount from the chain (not decimal-normalised). Positive means tokens entered the user's wallet.
500000000
USD value of token0 amount (decimal-normalised volume × price). Preserves sign from the underlying volume.
-1000.5
USD value of token1 amount (decimal-normalised volume × price). Preserves sign from the underlying volume.
998.75
USD price per one unit of token0 (after decimal normalisation).
1.0005
USD price per one unit of token1 (after decimal normalisation).
1997.5
Estimated USD volume of the swap.
999.625