Skip to content

Commit 54c96b1

Browse files
authored
Updating the compute units for evm subscriptions to 2 compute units per event. (#124)
1 parent ebae31d commit 54c96b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

compute-units.mdx

Lines changed: 2 additions & 2 deletions
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. | All supported EVM chains (varies by subscription type) when chain_ids is omitted |
21+
| Subscriptions | Event-based | 2 compute units 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

@@ -57,7 +57,7 @@ Chain count is computed after we expand any tags you pass. To keep CU predictabl
5757
Token Info is fixed-cost per request, even though `chain_ids` is required. CU does not scale with the number of chains.
5858
</Card>
5959
<Card title="Subscriptions: event-based cost">
60-
Each event sent to your webhook consumes 1 CU. A single webhook payload may contain multiple events, resulting in multiple CUs per webhook delivery.
60+
Each event sent to your webhook consumes 2 CUs. A single webhook payload may contain multiple events, resulting in multiple CUs per webhook delivery.
6161
</Card>
6262

6363
</Columns>

evm/subscriptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can set up and manage your subscriptions in two ways:
3737

3838
## Compute Unit Cost
3939

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.
40+
The Subscriptions API costs **2 CUs per event** sent to your webhook. Note that a single webhook call may include multiple events. For example, multiple balance changes or transactions.
4141

4242
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.
4343

0 commit comments

Comments
 (0)