Skip to content

Commit 03a2a27

Browse files
committed
first pass at more pricing info
1 parent 5e23a65 commit 03a2a27

File tree

4 files changed

+649
-0
lines changed

4 files changed

+649
-0
lines changed

docs/docs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
"learning-lit/backup-and-recovery",
2828
"learning-lit/threshold-cryptography"
2929
]
30+
},
31+
{
32+
"group": "Pricing",
33+
"pages": [
34+
"learning-lit/pricing/payment-model",
35+
"learning-lit/pricing/current-prices"
36+
]
3037
}
3138
]
3239
},
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Current Prices"
3+
---
4+
5+
The following table shows the current pricing for Lit Protocol services on the **naga-prod** network. Prices are displayed in both $LITKEY tokens and USD (based on current market rates).
6+
7+
<Note>
8+
Prices update dynamically based on network usage. The values shown below reflect real-time prices fetched from the blockchain.
9+
</Note>
10+
11+
import { CurrentPricesTable } from '../../snippets/CurrentPricesTable';
12+
13+
<CurrentPricesTable />
14+
15+
## Understanding the Price Table
16+
17+
### Base vs Max Prices
18+
19+
- **Base Price**: The minimum price when network usage is low
20+
- **Max Price**: The maximum price when the network is at full capacity
21+
- **Current Price**: The actual price at this moment, which varies between base and max based on usage
22+
23+
### Product Types
24+
25+
- **PKP Sign**: Signing operations using your Programmable Key Pair
26+
- **Encrypted Sign**: Signing with encrypted keys
27+
- **Lit Action**: Executing serverless JavaScript functions (pricing varies by component)
28+
- **Sign Session Key**: Session-based signing operations
29+
30+
### Lit Action Pricing Components
31+
32+
Lit Actions have multiple pricing components that are charged based on resource usage:
33+
34+
- **Base Amount**: Fixed cost per Lit Action execution
35+
- **Runtime Length**: Cost per second of execution time
36+
- **Memory Usage**: Cost per megabyte of memory used
37+
- **Code Length**: Cost based on the size of your Lit Action code
38+
- **Response Length**: Cost based on the size of the response data
39+
- **Signatures**: Cost per signature generated
40+
- **Broadcasts**: Cost per broadcast operation
41+
- **Contract Calls**: Cost per smart contract call
42+
- **Call Depth**: Cost based on call stack depth
43+
- **Decrypts**: Cost per decryption operation
44+
- **Fetches**: Cost per HTTP fetch request
45+
46+
The total cost of a Lit Action is calculated by summing all applicable components based on your action's actual resource usage.
47+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "Payment Model"
3+
---
4+
5+
Lit Protocol uses a token-based payment system to ensure the decentralized network can sustain itself and compensate node operators for providing cryptographic services.
6+
7+
## How Payment Works
8+
9+
### Token Deposit System
10+
11+
To use Lit Protocol's services, you must first load tokens into the **Ledger Contract** on Lit Chain. This contract acts as a prepaid account that holds your $LITKEY tokens and automatically deducts fees as you use the network.
12+
13+
### Dynamic Pricing Model
14+
15+
Lit Protocol uses a dynamic pricing model that adjusts based on network usage:
16+
17+
- **Base Price**: The minimum price for each service when the network has low usage
18+
- **Max Price**: The maximum price when the network is at full capacity
19+
- **Current Price**: The actual price at any given moment, which fluctuates between the base and max price based on current network usage
20+
21+
This pricing mechanism ensures:
22+
- Fair pricing during low-usage periods (you pay less when demand is low)
23+
- Network stability during high-usage periods (prices increase to manage demand)
24+
- Sustainable compensation for node operators
25+
26+
### Pricing in $LITKEY Tokens
27+
28+
All services on Lit Protocol are priced in **$LITKEY tokens**, the native token of Lit Chain. When you use network services such as:
29+
30+
- **PKP Signing**: Generating signatures with your Programmable Key Pair
31+
- **Encrypted Signing**: Signing with encrypted keys
32+
- **Lit Actions**: Executing serverless JavaScript functions
33+
- **Sign Session Key**: Session-based signing operations
34+
35+
The network automatically deducts the appropriate amount of $LITKEY tokens from your ledger balance based on the current dynamic price.
36+
37+
### Automatic Deduction
38+
39+
When you make a request to the network, the system:
40+
1. Checks your ledger balance
41+
2. Calculates the current price for the requested service
42+
3. Deducts the required tokens from your balance
43+
4. Processes your request
44+
45+
If your balance is insufficient, the request will fail. You can check your balance and deposit more tokens as needed using the [Payment Manager](/sdk/getting-started/payment-manager-setup).
46+
47+
## Getting Started
48+
49+
To start using Lit Protocol's paid services:
50+
51+
1. **Acquire $LITKEY tokens** - Get tokens from exchanges or other sources
52+
2. **Set up Payment Manager** - Configure your payment system using the [Payment Manager Setup Guide](/sdk/getting-started/payment-manager-setup)
53+
3. **Deposit tokens** - Load tokens into the ledger contract
54+
4. **Use the network** - Start making requests; tokens will be deducted automatically
55+
56+
For detailed information on current pricing, see the [Current Prices](/learning-lit/pricing/current-prices) page.
57+

0 commit comments

Comments
 (0)