Pricing Models Overview
Publishers can choose from three pricing strategies when publishing data assets:- Fixed Pricing - Set a specific price in tokens for asset access
- Dynamic Pricing - Price adjusts based on supply and demand (bonding curve)
- Free Pricing - Assets available at no cost to consumers
Configuration
Pricing options are controlled by environment variables in your.env file and processed in app.config.js.
Fixed Pricing
Enable or disable the fixed pricing option during asset price creation.Default: Enable in .env:Disable in .env:
trueHow it works: Publishers set a specific price (e.g., 10 OCEAN tokens) that consumers pay to access the asset. The price remains constant unless manually updated by the publisher.Configuration in app.config.js:- Stable, predictable pricing for enterprise data
- Premium datasets with known value
- Subscription-like access models
- When you want consistent revenue per access
Dynamic Pricing
Enable or disable the dynamic pricing option during asset price creation.Default: Enable in .env:Disable in .env:
falseHow it works: Price automatically adjusts based on a bonding curve mechanism. As more datatokens are purchased, the price increases; as tokens are sold back, the price decreases.Configuration in app.config.js:Dynamic pricing is disabled by default in the AgrospAI Data Space Portal. Enable it only if you want to support market-driven pricing mechanisms.
- High-demand datasets where market determines value
- Experimental pricing models
- Limited availability datasets
- Incentivizing early adopters (lower initial price)
Free Pricing
Enable or disable the free pricing option during asset price creation.Default: Enable in .env:Disable in .env:
trueHow it works: Assets are made available at no cost to consumers. Publishers don’t receive payment, but consumers may still pay gas fees for blockchain transactions.Configuration in app.config.js:- Open data initiatives
- Public datasets
- Sample or demo datasets
- Building community engagement
- Research data sharing
Configuration Examples
Example 1: Default Configuration (Fixed + Free)
The default configuration enables both fixed and free pricing:.env
- Setting a fixed price for their data
- Making their data freely available
Example 2: Fixed Pricing Only
For commercial marketplaces requiring all assets to be priced:.env
Example 3: All Pricing Models Enabled
For maximum flexibility:.env
Example 4: Free Only (Open Data Portal)
For open data initiatives where all data must be free:.env
How Pricing Options Appear to Publishers
When publishers create or edit a data asset and set pricing:- The UI displays tabs or options for enabled pricing models only
- Disabled pricing models are hidden from the interface
- If only one pricing model is enabled, it may be automatically selected
Smart Contract Integration
Each pricing model uses different Ocean Protocol smart contracts:Fixed Rate Exchange
Smart contract handling fixed price transactions.Pontus-X DevNet:
0x8372715D834d286c9aECE1AcD51Da5755B32D505Pontus-X TestNet: 0xcE0F39abB6DA2aE4d072DA78FA0A711cBB62764EDispenser
Smart contract handling free asset distribution.Pontus-X DevNet:
0x5461b629E01f72E0A468931A36e039Eea394f9eAPontus-X TestNet: 0xaB5B68F88Bc881CAA427007559E9bbF8818026dEDynamic Pricing (Bonding Curve)
Dynamic pricing uses Ocean Protocol’s bonding curve implementation within the datatoken contracts.Development Mode Overrides
When running in development mode, you can override contract addresses:.env
Impact on Marketplace Economics
Enabling Fixed Pricing
- Publishers earn predictable revenue
- Consumers know exact costs upfront
- Suitable for professional/commercial datasets
Enabling Dynamic Pricing
- Price reflects market demand
- Early adopters get better prices
- Can maximize revenue for high-demand assets
- Adds complexity to consumer experience
Enabling Free Pricing
- Increases data accessibility
- Builds community and engagement
- No direct revenue for publishers
- May attract lower-quality datasets
Best Practices
Related Configuration
Pricing options work in conjunction with:- Marketplace Fees - Configure fees on top of asset prices
- Network Setup - Contract addresses for pricing mechanisms
- Environment Variables - Complete environment configuration
Default Datatoken Template
The portal uses datatoken template index 2 by default:app.config.js