How to get calldata and unit for uniswap v3 swap connector?

const network = "polygon"
const url = `https://api.instadapp.io/defi/${network}/uniswap/v3/swap/router`;
const params = {
    buyToken:<"buy-token">,
    sellToken: <"sell-token">,
    sellAmount: <"amount">,
    dsaAddress: USER_ADDRESS
}
const response = await axios.get(url, {
    params: params
});
const calldata = response.data.calldata;
const unitAmt = response.data.unitAmt;

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.