Docs

quoteExactInputSingle

Prepares a transaction to call the "quoteExactInputSingle" function on the contract.

Example

import { quoteExactInputSingle } from "thirdweb/extensions/uniswap";
const transaction = quoteExactInputSingle({
contract,
tokenIn: ...,
tokenOut: ...,
fee: ...,
amountIn: ...,
sqrtPriceLimitX96: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.