This endpoint allows users to trade a variable amount of one token to receive an exact amount of another token using the Uniswap protocol.
The transaction is executed on the specified blockchain network, and the user must provide the necessary transaction details, including the token to buy, the token to pay with, and the exact amount to receive. If the token being paid with is WETH and needs to be wrapped, the appropriate amount will be wrapped automatically.
Required Allowances
In order to make this transaction, token allowances need to be set on the following contracts.
UniswapV3Router
Request model for buying an exact amount of tokens.
Successful Response
The response is of type object
.