Skip to content

Commit e2af5c8

Browse files
authored
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)
1 parent 6629876 commit e2af5c8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

compute-units.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Compute Units (CUs) are how we measure API usage in Sim. CUs reflect the actual
1818
| Transactions (EVM & SVM) | Fixed | 1 compute unit per request ||
1919
| Token Info | Fixed | 2 compute units per request, even though `chain_ids` is required ||
2020
| 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 |
2222

2323
## How CUs work
2424

evm/subscriptions.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ You can set up and manage your subscriptions in two ways:
3939

4040
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.
4141

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+
4244
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.
4345

4446
<Note>

0 commit comments

Comments
 (0)