Skip to main content

TypeScript shape

WebhookCondition is a GraphQL union — discriminate via __typename to read the right fields. Only the four supported categories are returned by getWebhooks.
object
Pair-level events (swap / mint / burn). See TokenPairEventWebhookCondition.
object
Token-price threshold events. See TokenPriceEventWebhookCondition.
object
Market-cap threshold events. See MarketCapEventWebhookCondition.
object
Token-transfer events. See TokenTransferEventWebhookCondition.

Example