API Reference
Complete API documentation for developers
Endpoints
GET /api/datasets
Retrieve all available datasets
Response: 200 OK
POST /api/datasets
Upload a new dataset
Auth required
POST /api/compute/rent
Rent compute resources
DVC payment required
GET /api/staking/rewards
Check staking rewards
Wallet auth required
SDK Installation
JavaScript/TypeScript
npm install @dravacoin/sdk
import { DravaCoin } from '@dravacoin/sdk';
const dvc = new DravaCoin({
apiKey: 'your-api-key',
network: 'mainnet'
});
// Purchase dataset
await dvc.datasets.purchase('dataset-id', {
amount: '100',
currency: 'DVC'
});