Docs

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
...

Parameters

Returns

A prepared transaction object.