Skip to main content

Interface: WatchNewPoolsOptions

Options of Pools.watchNewPools.

Properties​

PropertyTypeDescription
intervalMs?numberMilliseconds between polls (default 30 000; a finite number of at least 1).
minTvl?numberReport only a pool whose tvlUsd is at least this (a pool without tvlUsd counts as 0).
onError?(error) => voidTold about a poll that failed and about an onPool that threw; polling goes on either way.
tokens?readonly string[]Report only a pool with one of these symbols as token0 or token1.