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
...
function quoteExactInputSingle(
| { asyncParams: () => Promise<QuoteExactInputSingleParams> }
>,

Parameters

The options for the "quoteExactInputSingle" function.

Type

| { asyncParams: () => Promise<QuoteExactInputSingleParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.