createPool

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

Example

import { createPool } from "thirdweb/extensions/uniswap";
const transaction = createPool({
contract,
tokenA: ...,
tokenB: ...,
fee: ...,
overrides: {
...
}
});
// Send the transaction
...
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.