Body
Request model for buying an exact amount of tokens.
The symbol or address of the token to swap from..
"WETH"
The symbol or address of the token to swap to..
"WETH"
The swap fee of the pool
0.01
, 0.05
, 0.3
, 1.0
The amount of 'token_out' to buy.
x > 0
1.5
The maximum slippage allowed in percent. e.g. 1
means 1 %
slippage allowed.
0 <= x <= 10
0.5
arbitrum
, base
, ethereum
The address of the transaction sender.
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
"UNISWAP_BUY_EXACTLY"
Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
Response
Successful Response
The unsigned transaction data. User must sign and broadcast to network.
- UnsignedTransaction
- UserOperationResponse
The estimated amount in for the transaction. The actual input amount for this transaction is guaranteed be within the acceptable threshold, defined by the max_slippage_percent
, relative to this quote.