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.
# JavaScript / Node.js npm install helius-pol-sdk # Or direct download curl -O https://heliusnetwork.com/sdk/helius-pol-sdk.js
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'
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