Building on ComputeNet

Getting started with ComputeNet development

Draft Documentation

This documentation is under development and may be incomplete or subject to change.

Getting Started

This guide walks through the fundamentals of building applications that leverage ComputeNet for verifiable computation. You will learn how to submit jobs, verify results, and integrate receipts into your applications.

Prerequisites

  • Node.js 18+ or Python 3.10+
  • ComputeNet SDK installed
  • Testnet access credentials

Quick Start

# Install the SDK
npm install @computenet/sdk

# Initialize a client
import { ComputeNet } from '@computenet/sdk';

const client = new ComputeNet({
  network: 'testnet',
  apiKey: process.env.COMPUTENET_API_KEY
});

// Submit a compute job
const receipt = await client.compute({
  program: 'sha256',
  input: Buffer.from('hello world')
});

console.log('Receipt:', receipt.id);
console.log('Output:', receipt.output);

Next Steps

  • Learn about Submitting Jobs for detailed job configuration
  • Read Verifying Results to understand receipt validation
  • Explore the SDK Reference for complete API documentation