quoteExactInput

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

Example

import { sendTransaction } from "thirdweb";
import { quoteExactInput } from "thirdweb/extensions/uniswap";
const transaction = quoteExactInput({
contract,
path: ...,
amountIn: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.