createPool

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

Example

import { sendTransaction } from "thirdweb";
import { createPool } from "thirdweb/extensions/uniswap";
const transaction = createPool({
contract,
tokenA: ...,
tokenB: ...,
fee: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function createPool(
| { asyncParams: () => Promise<CreatePoolParams> }
>,

Parameters

The options for the "createPool" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.