Skip to content

Commit 56de8e5

Browse files
committed
examples costs
1 parent 56af48e commit 56de8e5

File tree

6 files changed

+722
-275
lines changed

6 files changed

+722
-275
lines changed

docs/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"group": "Pricing",
3333
"pages": [
3434
"learning-lit/pricing/payment-model",
35-
"learning-lit/pricing/current-prices"
35+
"learning-lit/pricing/current-prices",
36+
"learning-lit/pricing/example-lit-action-costs"
3637
]
3738
}
3839
]

docs/learning-lit/pricing/current-prices.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
title: "Current Prices"
33
---
44
import { CurrentPricesTable } from "/snippets/CurrentPricesTable.jsx";
5+
import { PriceProvider } from "/snippets/PriceProvider.jsx";
56

67
The following table shows the current pricing for Lit Protocol services on the **Naga Prod / Mainnet V1** network. Prices are displayed in both $LITKEY tokens and USD (based on current market rates).
78

89
<Note>
910
Most prices update dynamically based on network usage. The values shown below reflect real-time prices fetched from the blockchain. Note that PKP Minting cost is static and does not change with network utilization.
1011
</Note>
1112

12-
<CurrentPricesTable />
13+
<PriceProvider>
14+
<CurrentPricesTable />
15+
</PriceProvider>
1316

1417
## Understanding the Price Table
1518

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "Example Lit Action Costs"
3+
---
4+
import { ExampleLitActionCosts } from "/snippets/ExampleLitActionCosts.jsx";
5+
import { PriceProvider } from "/snippets/PriceProvider.jsx";
6+
7+
This page demonstrates real-world cost estimates for common Lit Action operations. The costs are calculated using current real-time prices from the blockchain and show how different resource usage affects the total cost.
8+
9+
<Note>
10+
These are estimates based on current prices and the specified resource usage. Actual costs may vary slightly based on network conditions and exact resource consumption.
11+
</Note>
12+
13+
<PriceProvider>
14+
<ExampleLitActionCosts />
15+
</PriceProvider>
16+
17+
## Understanding the Cost Breakdown
18+
19+
Each example shows a detailed breakdown of costs by component:
20+
21+
- **Base Amount**: Fixed cost per Lit Action execution
22+
- **Runtime Length**: Cost based on execution time (charged per second)
23+
- **Fetches**: Cost per HTTP fetch request
24+
- **Signatures**: Cost per signature generated
25+
- **Decrypts**: Cost per decryption operation
26+
27+
The total cost is the sum of all applicable components based on the operation's resource usage.
28+

0 commit comments

Comments
 (0)