Stream real-time swap transactions for multiple pools or tokens
Establishes a multiplexed SSE stream for swap transactions across multiple pools or tokens within a single connection.
Stream Constraints: Maximum payload array length is 25 subscriptions.
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). - error: Stream-level operational exceptions (ErrorEvent).
Query Parameters
Maximum event count before server-initiated connection teardown.
x >= 1Body
25Target blockchain network identifier.
"ethereum"
Pool or token smart contract address.
"0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
Subscription target type.
pool, token Optional identifier for tracking multiplexed requests. Defaults to the array index if omitted.
0 <= x <= 4294967295Response
Multiplexed 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