Learn OCEAN-SDK with Real Code Examples
Updated Nov 25, 2025
Installation Setup
Install Python or Node.js
pip install ocean-sdk (Python) or npm install @oceanprotocol/sdk
Set up Web3 provider (e.g., Infura, Alchemy)
Connect to Ethereum or Polygon testnet
Verify installation via sample dataset publishing
Environment Setup
Install Python or Node.js
Install Ocean SDK
Set up Web3 provider
Configure wallet and network
Verify dataset publishing
Config Files
ocean-config.json
SDK environment variables
Wallet keys or mnemonic
Network RPC endpoints
Local compute node configuration
Cli Commands
ocean-publish-dataset
ocean-buy-dataset
ocean-sell-dataset
ocean-compute
ocean-list-datasets
Internationalization
Docs and tutorials in English and other languages
Community translations
Global developer community
Cross-chain interoperability
Unicode-safe metadata
Accessibility
Python and JS SDKs accessible to developers
Extensive documentation
Sample scripts and tutorials
Web3 provider flexibility
Active community support
Ui Styling
SDK integrates with React or Vue frontends
Marketplace interfaces
Python CLI tools
Dashboard visualizations
Metadata-driven UI forms
State Management
DDO metadata
Access tokens (ERC-20/ERC-721)
Consumption events
Compute-to-data job state
Marketplace listing status
Data Management
Off-chain dataset storage
On-chain metadata registry
Token-based access control
Compute-to-data privacy preservation
Event logging and tracking