Skip to main content

TypeScript shape

interface CreateWebhooksInput {
  priceWebhooksInput?: CreatePriceWebhooksInput | null;
  tokenPairEventWebhooksInput?: CreateTokenPairEventWebhooksInput | null;
  rawTransactionWebhooksInput?: CreateRawTransactionWebhooksInput | null;
  marketCapWebhooksInput?: CreateMarketCapWebhooksInput | null;
  tokenPriceEventWebhooksInput?: CreateTokenPriceEventWebhooksInput | null;
  tokenTransferEventWebhooksInput?: CreateTokenTransferEventWebhooksInput | null;
  predictionTradeWebhooksInput?: CreatePredictionTradeWebhooksInput | null;
  predictionMarketMetricsEventWebhooksInput?: CreatePredictionMarketMetricsEventWebhooksInput | null;
}
Used by createWebhooks. All four fields are optional; provide only the categories you want to create.
tokenPairEventWebhooksInput
CreateTokenPairEventWebhooksInput
Pair-level events (swap / mint / burn). See CreateTokenPairEventWebhooksInput.
marketCapWebhooksInput
CreateMarketCapWebhooksInput
Market-cap threshold events. See CreateMarketCapWebhooksInput.
tokenPriceEventWebhooksInput
CreateTokenPriceEventWebhooksInput
Token-price threshold events. See CreateTokenPriceEventWebhooksInput.
tokenTransferEventWebhooksInput
CreateTokenTransferEventWebhooksInput
Token-transfer events. See CreateTokenTransferEventWebhooksInput.