quoteExactInput

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

Example

import { quoteExactInput } from "thirdweb/extensions/uniswap";
const transaction = quoteExactInput({
contract,
path: ...,
amountIn: ...,
overrides: {
...
}
});
// Send the transaction
...
function quoteExactInput(
| { asyncParams: () => Promise<QuoteExactInputParams> }
>,

Parameters

The options for the "quoteExactInput" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.