You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making it more clear on the Subscrpitions Overview and the Compute Units page how the ?chain_ids query parameter affects things if it's ommitted. (#118)
Copy file name to clipboardExpand all lines: compute-units.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Compute Units (CUs) are how we measure API usage in Sim. CUs reflect the actual
18
18
| Transactions (EVM & SVM) | Fixed | 1 compute unit per request | — |
19
19
| Token Info | Fixed | 2 compute units per request, even though `chain_ids` is required | — |
20
20
| Token Holders | Fixed | 2 compute units per request | — |
21
-
| Subscriptions | Event-based | 1 compute unit per event sent to your webhook. Note that a single webhook payload can contain multiple events. |—|
21
+
| Subscriptions | Event-based | 1 compute unit per event sent to your webhook. Note that a single webhook payload can contain multiple events. |All supported EVM chains (varies by subscription type) when chain_ids is omitted|
Copy file name to clipboardExpand all lines: evm/subscriptions.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ You can set up and manage your subscriptions in two ways:
39
39
40
40
The Subscriptions API costs **1 CU per event** sent to your webhook. Note that a single webhook call may include multiple events. For example, multiple balance changes or transactions.
41
41
42
+
If you omit `chain_ids` when creating a webhook your subscription watches all supported EVM chains for matching events. You are only charged per event received regardless of how many chains are monitored.
43
+
42
44
Creating and managing webhook subscriptions through the API does not consume compute units. However, your account must have an active plan to use the Subscriptions API.
0 commit comments