← Back to Portal
SDKS & LIBRARIES

Helius PoL SDKs

Official client libraries for integrating the Helius Proof-of-Life Engine. All SDKs wrap the REST API with type-safe methods, automatic retries, and error handling.

Available SDKs

🟨
JavaScript / Node.js
v1.0.0 · All tiers · 58KB
Full-featured client for Node.js and browser. Supports all endpoints, streaming, and the full pipeline in one call.
↓ helius-pol-sdk.js
⚛️
React Native / Expo
v1.0.0 · All tiers · Expo SDK 51+
GPS trace collection, accelerometer capture, background session tracking, and one-call pipeline submission for Expo apps.
↓ helius-pol-rn.js
🐍
Python
v1.0.0 · Growth+ · 24KB
Python SDK for backend integrations, data pipelines, batch processing, and scientific analysis of PoL activity data.
🔒 Growth tier required
🍎
Swift / iOS
v1.0.0 · Enterprise · Xcode 15+
Native iOS SDK with CoreLocation integration, background activity tracking, and HealthKit data correlation.
🔒 Enterprise only
🤖
Kotlin / Android
v1.0.0 · Enterprise · Android 8+
Native Android SDK with FusedLocationProvider, WorkManager for background sessions, and sensor data capture.
🔒 Enterprise only
📖
API Reference
Full REST documentation
Complete endpoint reference, request/response schemas, error codes, rate limits, and the PoL formula breakdown.
→ View Docs

Quick Install

# JavaScript / Node.js
npm install helius-pol-sdk

# Or direct download
curl -O https://heliusnetwork.com/sdk/helius-pol-sdk.js

JavaScript Usage

const HeliusPoL = require('helius-pol-sdk');

const pol = new HeliusPoL({
  apiKey:  'hls_your_key',
  baseUrl: 'https://your-site.netlify.app'
});

// Verify activity and get reward in one call
const result = await pol.fullPipeline({
  user_id:       'user_123',
  start_time:    sessionStart,
  end_time:      new Date().toISOString(),
  distance_km:   4.2,
  activity_type: 'running',
  gps_trace:     points,
  sensor_data:   accelReadings,
  mission_type:  'environmental'
});

console.log(result.pol_score);     // 112
console.log(result.reward_amount); // 4.2 HLS
console.log(result.fraud_risk);    // 'low'

React Native Usage

import HeliusPoL from './helius-pol-rn';

const pol = new HeliusPoL({ apiKey: 'hls_your_key' });

// Collect GPS automatically during session
const session = await pol.startSession({ userId: user.id });
// ... user moves around ...
const result = await session.end({ activityType: 'walking' });
// GPS trace and sensors collected automatically