This endpoint allows users to trade a specific amount of one token into 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 sell, the token to receive, and the amount to sell. If the token being sold 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
.