Skip to content

Nosana KitTypeScript SDK

Comprehensive tools for managing jobs, markets, runs, and protocol operations on the Nosana decentralized compute network

Installation

bash
npm install @nosana/kit

Quick Start

ts
import { 
createNosanaClient
,
NosanaNetwork
,
address
} from '@nosana/kit';
// Initialize with mainnet defaults const
client
=
createNosanaClient
();
// Or specify network and configuration const
clientDev
=
createNosanaClient
(
NosanaNetwork
.
DEVNET
, {
solana
: {
rpcEndpoint
: 'https://your-custom-rpc.com',
commitment
: 'confirmed',
}, }); // Fetch a job by address const
job
= await
client
.
jobs
.
get
(
address
('job-address'));
console
.
log
('Job state:',
job
.
state
);