poolCreatedEvent

Creates an event object for the PoolCreated event.

Example

import { getContractEvents } from "thirdweb";
import { poolCreatedEvent } from "thirdweb/extensions/uniswap";
const events = await getContractEvents({
contract,
events: [
poolCreatedEvent({
token0: ...,
token1: ...,
sender: ...,
})
],
});

Parameters

Returns

The prepared event object.