Learn OCEAN-SDK with Real Code Examples
Updated Nov 25, 2025
Architecture
Frontend SDK (Python/JS) -> APIs
Smart contracts on Ethereum/Polygon
Off-chain compute resources for private data
DDO registry on-chain
Event and access tracking through blockchain logs
Rendering Model
Dataset -> DDO -> Tokenized access -> Marketplace
Compute-to-data executes off-chain
SDK APIs expose dataset and marketplace interactions
On-chain events track access and consumption
Metadata stored and indexed via Aquarius
Architectural Patterns
DDO for metadata abstraction
Tokenized access control
Compute-to-data for secure computation
Event-driven tracking for consumption
SDK-centric integration for developers
Real World Architectures
Decentralized AI model training
Data marketplaces with tokenized access
Cross-chain dataset sharing
Privacy-preserving analytics
Subscription-based dataset monetization
Design Principles
Decentralization first
Privacy-preserving data access
Tokenized monetization
Interoperable with multiple EVM chains
Composable and modular SDK design
Scalability Guide
Use off-chain storage for large datasets
Batch tokenized access requests
Deploy compute nodes for high-volume jobs
Monitor blockchain events efficiently
Optimize metadata for indexing
Migration Guide
Migrate existing datasets to Ocean marketplace
Define DDO metadata
Tokenize access via ERC-20/ERC-721
Integrate compute-to-data workflows
Test and deploy marketplace interactions