Prepares a transaction to call the "createPool" function on the contract.
import { sendTransaction } from "thirdweb";import { createPool } from "thirdweb/extensions/uniswap"; const transaction = createPool({ contract, tokenA: ..., tokenB: ..., fee: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function createPool( options: BaseTransactionOptions< | CreatePoolParams | { asyncParams: () => Promise<CreatePoolParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "createPool" function.
let options: BaseTransactionOptions< CreatePoolParams | { asyncParams: () => Promise<CreatePoolParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.