Skip to content

Commit a537f86

Browse files
Add warning about empty topics in Custom Webhook filters
1 parent 3e91d46 commit a537f86

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fern/api-reference/data/webhooks/webhook-types/custom-webhook.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,15 @@ Below you can find descriptions for select response fields. Note that this is no
24092409

24102410
If you're new to GraphQL, this editor has autocomplete enabled and will magically suggest fields as you start typing. If you get lost, you can always search for available queries in the docs tab on the right!
24112411

2412+
<Warning>
2413+
**Important Note About Empty Topics**
2414+
2415+
Leaving topics empty makes your filter match **all events** (for the selected address, or for **all addresses** if none is provided).
2416+
This can generate very high webhook volume and **significant usage costs**.
2417+
If you only want specific event types, be sure to include topic filters.
2418+
Learn more: [Event Log Filters](https://www.alchemy.com/docs/reference/custom-webhook-filters#eventlog-filters)
2419+
</Warning>
2420+
24122421
6. Test and validate your GraphQL query by clicking the **Test Webhook** button. Confirm that your GraphQL query is valid does not contain any syntactical errors. **NOTE:** If you want to test your GraphQL query on a historical block, you can simply define your target block hash within the top-level block filter.
24132422

24142423
<CodeGroup>

0 commit comments

Comments
 (0)