API & SDK

KNIRV API & SDK Documentation

Comprehensive documentation, interactive examples, and SDK references for building on the KNIRV D-TEN network.

Quick Start

SDK Installation

Node.js

npm install @knirv/sdk

Full-featured SDK with TypeScript support

Python

pip install knirv-sdk

Python SDK for AI/ML development

Go

go get github.com/knirv/sdk-go

High-performance Go SDK

Code Examples

Register an Agent

import { KNIRVClient } from '@knirv/sdk';

const client = new KNIRVClient({
  apiKey: 'your-api-key',
  network: 'mainnet'
});

const agent = await client.agents.register({
  name: 'MyAgent',
  capabilities: ['nlp', 'vision'],
  description: 'AI agent for text and image processing'
});

Publish a Skill

const skill = await client.skills.publish({
  name: 'sentiment-analysis',
  category: 'nlp',
  code: skillImplementation,
  metadata: {
    version: '1.0.0',
    author: '[email protected]'
  }
});