Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kynesys.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Quick Start

The Web2 proxy system enables HTTP requests through the Demos network, providing privacy and attestation capabilities through DAHR (Data Agnostic HTTPS Relay).

Basic Setup

import { Demos } from "@kynesyslabs/demosdk/websdk"

// Connect to demos
const demos = new Demos()
await demos.connect("https://node2.demos.sh")
await demos.connectWallet(mnemonic)

Making Your First Request

// Create DAHR instance
const dahr = await demos.web2.createDahr()

// Make request
const response = await dahr.startProxy({
    url: "https://api.example.com",
    method: "GET",
})

// Do something with the response
console.log("Response:", response)