Uniswap V3: Amount Out After Trade

Supply Uniswap V3 (Solidly or Pancake V3 supported too) pool address, input & output tokens and amountIn and get real amountOut.

Request Example:

curl --location 'https://api.invisium.com/get-amount-out-v3' \
--header 'Content-Type: application/json' \
--data '{
    "poolAddress": "0x109830a1aaad605bbf02a9dfa7b0b92ec2fb7daa",
    "tokenIn": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "tokenOut": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
    "amountIn": 1000000000000000000
}'

Response Example:

{
    "amountOut": "848478764525971171"
}

Last updated