Reference
The tokenIn address
0xb8ce59fc3717ada4c02eadf9682a9e934f625ebbPattern: ^0x(.*)$The tokenOut address
0x0000000000000000000000000000000000000000Pattern: ^0x(.*)$The amount of tokenIn used in the swap
100000The amount of tokenIn used in the swap
100000The address to send the output to
0x009aB009A009Ab009A009aB009a009ab009A009aPattern: ^0x(.*)$The maximum slippage allowed in the swap as a decimal fraction, for example 0.005 for 0.5% slippage. 0 < maxSlippage < 1
0.01Example: 0.010The maximum slippage allowed in the swap as a decimal fraction, for example 0.005 for 0.5% slippage. 0 < maxSlippage < 1
0.01Example: 0.01Whether to simulate the quotes
trueThe referral code to use in the swap
12345678900The referral code to use in the swap
1234567890List of available aggregators
List of available aggregators
Establishes a Server-Sent Events (SSE) stream that provides real-time swap quotes from multiple aggregators. The stream emits various event types including connection status, quotes, errors, heartbeats, and completion notifications.
The tokenIn address
0xb8ce59fc3717ada4c02eadf9682a9e934f625ebbPattern: ^0x(.*)$The tokenOut address
0x0000000000000000000000000000000000000000Pattern: ^0x(.*)$The amount of tokenIn used in the swap
100000The amount of tokenIn used in the swap
100000The address to send the output to
0x009aB009A009Ab009A009aB009a009ab009A009aPattern: ^0x(.*)$The maximum slippage allowed in the swap as a decimal fraction, for example 0.005 for 0.5% slippage. 0 < maxSlippage < 1
0.01Example: 0.010The maximum slippage allowed in the swap as a decimal fraction, for example 0.005 for 0.5% slippage. 0 < maxSlippage < 1
0.01Example: 0.01Whether to simulate the quotes
trueThe referral code to use in the swap
12345678900The referral code to use in the swap
1234567890SSE stream of quote events
Server-Sent Events formatted string containing quote data
event: connected data: {"message":"Connected to quote stream","aggregators":["hyperBloom","oogaBooga"]}SSE stream of quote events
Last updated