Skip to main content
PriceIndex is a special index type that changes how payments work, enabling revenue-sharing business models for applications built on OnDB.

Traditional vs PriceIndex Payment

How It Works

Creating a PriceIndex

Using PriceIndex in Applications

Use Cases

PriceIndex is perfect for: Not suitable for:
  • Product catalogs (use BTree for filtering by price range)
  • Free/public data storage
  • Internal analytics data
  • User-generated content without pricing

Complete E-commerce Example

Checking App Wallet Balance

Your application’s revenue share is credited to the app wallet balance:

Revenue Split Configuration

The default revenue split is:
  • 80% to the application owner
  • 20% to the platform (OnDB)
You can customize pricing when creating a write index via createWriteIndex():

Next Steps

Paid Reads

HTTP 402 for read operations

Cost Estimation

Estimate operation costs